Fail on: select sid from tbl_product where pid=
Syntax error (missing operator) in query expression 'pid='.