Array ( [data] => Array ( [instance] => ) [errors] => Array ( [0] => Array ( [message] => An exception occurred while executing 'select i.*, c.name class_name, c.tag class_tag, c.id class_id, i.key_fields nom_intern, i.update_date, ifnull(unix_timestamp(i.update_date),0) update_timestamp from omp_instances i , omp_classes c where 1=1 and i.id= and c.id=i.class_id and i.status = 'O' and DATE_FORMAT(i.publishing_begins,'%Y%m%d%H%i%S') <= NOW()+0 and IFNULL(DATE_FORMAT(i.publishing_ends,'%Y%m%d%H%i%S'),now()+1) > NOW()+0 ': SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and c.id=i.class_id and i.status = 'O' and DATE_FORMAT(i.p' at line 6 [locations] => Array ( [0] => Array ( [line] => 2 [column] => 4 ) ) ) ) )