Could not query: SELECT * FROM houses WHERE id=top and published = 1