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 '' at line 1
select P,S,Number,Model,Colour,price,man_name from price_guide as pg, manufacturer as m where m.man_id=pg.Manufacturer and pg.ID=