SELECT man.name as brand, scales.model, scales.id,scales.img,scales.price from man,scales,relate WHERE relate.scale_ID1 = 1925%20%3Ca%20href= AND scale_ID2 = scales.id AND scales.man = man.id [nativecode=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 scale_ID2 = scales.id AND scales.man = man.id' at line 1]DB Error: syntax error