SELECT * FROM users WHERE `username` LIKE :username AND id=:idSELECT * FROM posts WHERE id=:topicId AND thread ='1' SELECT * FROM forums WHERE id=:forumIdSELECT * FROM forums WHERE id=:forumIdSELECT COUNT(*) AS count FROM posts WHERE tid=:topicId ORDER BY id