Expression #16 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lopeti49_rocastnord_new.i.imagine' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_byArray
(
    [0] => Array
        (
            [file] => /home/lopeti49/public_html/rocastnord.ro/pages/produse.php
            [line] => 148
            [function] => Query
            [class] => CQuery
            [object] => CQuery Object
                (
                    [dbh] => Resource id #13
                    [query] => SELECT p.*,i.imagine FROM produse p 
		LEFT JOIN imagini i ON i.id_produs=p.id
		WHERE p.id_producator = 20
		GROUP BY p.id
		ORDER BY p.nume
		LIMIT 0, 20
                    [res] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT p.*,i.imagine FROM produse p 
		LEFT JOIN imagini i ON i.id_produs=p.id
		WHERE p.id_producator = 20
		GROUP BY p.id
		ORDER BY p.nume
		LIMIT 0, 20
                )

        )

    [1] => Array
        (
            [file] => /home/lopeti49/public_html/rocastnord.ro/index.php
            [line] => 218
            [args] => Array
                (
                    [0] => /home/lopeti49/public_html/rocastnord.ro/pages/produse.php
                )

            [function] => include_once
        )

)
Expression #16 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lopeti49_rocastnord_new.i.imagine' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT p.*,i.imagine FROM produse p LEFT JOIN imagini i ON i.id_produs=p.id WHERE p.id_producator = 20 GROUP BY p.id ORDER BY p.nume LIMIT 0, 20