Expression #16 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lopeti49_rocastnord_new.img.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/classes/db.php
            [line] => 13
            [function] => Query
            [class] => CQuery
            [object] => CQuery Object
                (
                    [dbh] => Resource id #13
                    [query] => SELECT p.*, img.imagine as imagine, 
							pr.id as pr_id, pr.nume as pr_nume, pr.imagine as pr_imagine, pr.url as pr_url
			FROM produse p
			LEFT JOIN imagini img ON img.id_produs=p.id
			LEFT JOIN producatori pr ON pr.id=p.id_producator
			WHERE p.id='215'
			GROUP BY p.id
                    [res] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT p.*, img.imagine as imagine, 
							pr.id as pr_id, pr.nume as pr_nume, pr.imagine as pr_imagine, pr.url as pr_url
			FROM produse p
			LEFT JOIN imagini img ON img.id_produs=p.id
			LEFT JOIN producatori pr ON pr.id=p.id_producator
			WHERE p.id='215'
			GROUP BY p.id
                )

        )

    [1] => Array
        (
            [file] => /home/lopeti49/public_html/rocastnord.ro/classes/db.php
            [line] => 91
            [function] => CQuery
            [class] => CQuery
            [object] => CQuery Object
                (
                    [dbh] => Resource id #13
                    [query] => SELECT p.*, img.imagine as imagine, 
							pr.id as pr_id, pr.nume as pr_nume, pr.imagine as pr_imagine, pr.url as pr_url
			FROM produse p
			LEFT JOIN imagini img ON img.id_produs=p.id
			LEFT JOIN producatori pr ON pr.id=p.id_producator
			WHERE p.id='215'
			GROUP BY p.id
                    [res] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT p.*, img.imagine as imagine, 
							pr.id as pr_id, pr.nume as pr_nume, pr.imagine as pr_imagine, pr.url as pr_url
			FROM produse p
			LEFT JOIN imagini img ON img.id_produs=p.id
			LEFT JOIN producatori pr ON pr.id=p.id_producator
			WHERE p.id='215'
			GROUP BY p.id
                )

        )

    [2] => Array
        (
            [file] => /home/lopeti49/public_html/rocastnord.ro/pages/produs.php
            [line] => 114
            [function] => fetch
            [class] => CQuery
            [object] => CQuery Object
                (
                    [dbh] => Resource id #13
                    [query] => SELECT c.id, c.parent_id, c.script, c.title_ro, c.title_en, params
					FROM site_struct c						
					ORDER BY c.parent_id, ord 
			
                    [res] => Resource id #16
                )

            [type] => ->
            [args] => Array
                (
                    [0] => SELECT p.*, img.imagine as imagine, 
							pr.id as pr_id, pr.nume as pr_nume, pr.imagine as pr_imagine, pr.url as pr_url
			FROM produse p
			LEFT JOIN imagini img ON img.id_produs=p.id
			LEFT JOIN producatori pr ON pr.id=p.id_producator
			WHERE p.id='215'
			GROUP BY p.id
                )

        )

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

            [function] => include_once
        )

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

SELECT p.*, img.imagine as imagine, pr.id as pr_id, pr.nume as pr_nume, pr.imagine as pr_imagine, pr.url as pr_url FROM produse p LEFT JOIN imagini img ON img.id_produs=p.id LEFT JOIN producatori pr ON pr.id=p.id_producator WHERE p.id='215' GROUP BY p.id