Error performing query SELECT distinct r.nume AS nume_oras, r.seo, r.id AS id_oras,r.detalii,r.id_tara FROM regiuni AS r LEFT JOIN program_regiuni as pr ON pr.id_regiune = r.id LEFT JOIN program as prg ON prg.id = pr.id_program LEFT JOIN oferte as of ON of.id= prg.id_oferta WHERE of.id_tip_activitate= AND of.show_it=1 AND r.id_tara=176 ORDER BY nume_oras ASC
Debug info is below:
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 'AND of.show_it=1 AND r.id_tara=176 ORDER BY nume_oras ASC' at line 6