EROARE SQL:
select p.* from produse as p, leg_cat_prod as l where l.id_produs=p.id and p.id != "583" and l.id_categorie in (295,) order by RAND() limit 4
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') order by RAND() limit 4' at line 1