full group by uitzetten

This commit is contained in:
2026-03-10 16:11:52 +01:00
parent 90b4f0d08e
commit 44bc260061
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -13,9 +13,11 @@
class MY_Model extends CI_Model{
function __construct(){
parent::__construct();
// Disable ONLY_FULL_GROUP_BY for legacy queries
$this->db->query("SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))");
}
function get_record_by_id($id, $fieldname=FALSE, $row=TRUE){