Can't execute query

select header_img, header_bgcolor, logo_png, pname, header_img2, header_img3 from principals where status=1 and principal_id = 

MySQL Error: 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

This script cannot continue, terminating.