Fixed typo in SQL condition for publish_status
Fixed second typo in SQL condition for publish_status