string(429) "SELECT p_photo.id AS photo_id, sp.name, sp.id, sp.id_razd, sp.artikul, sp.pricerozn, sp.status_new, sp.status_product_week, sp.status_hit, sp.sale_value, sp.comment FROM ru_sections_prod AS sp LEFT JOIN ru_sections_prod_photo AS p_photo ON sp.id=p_photo.id_item WHERE sp.deleted=0 AND sp.hide=0 AND sp.count>0 AND (NOT p_photo.id IS NULL) AND sp.id_razd IN (3610,3611) AND 1=1 AND 1=1 GROUP BY sp.id ORDER BY sp.id DESC " array(3) { [0]=> string(5) "42000" [1]=> int(1055) [2]=> string(233) "Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'marymea_db.p_photo.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by" }