syntax error: select count(id) as total from table_comment where id_sp= and active=1