Zapytanie zakoñczone niepowodzeniem select zajawka1.id_z,f1,f2,img,img_w,img_h from tech_z1 JOIN zajawka1 USING (id_z) where id_i= order by tech_z1.position 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 'order by tech_z1.position' at line 1