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 rodzaj_obiektu=1' at line 1
select tylko_elementy_obiektu from tpl_obiekty_bazowe_obszaru where id_obszaru=1 and id_obiektu= and rodzaj_obiektu=1