A PHP Error was encountered

Severity: Notice

Message: Undefined variable: dezvoltator

Filename: controllers/dezvoltatori_imobiliari.php

Line Number: 131

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND activ = '1' ORDER BY rand()' at line 3

SELECT id,titlu,url,adresa,descriere_scurta,proprietate_tip_imobil,proprietate_tip_tranzactie,agentie_contact_1,agentie_contact_2,dezvoltator_id,judet_id,oras_id,zona_id,first_image FROM default_proiect WHERE 1 AND dezvoltator_id = AND activ = '1' ORDER BY rand()