SELECT * FROM textpattern where id= and status=4