Unknown column 'tempid' in 'where clause'
select id from ***_enewstagsdata where tagid=2268&tempid=27 AND classid=718