OcurriĆ³ un error con la base de datos

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

SELECT post.*, info.* FROM qh_post AS post, qh_info AS info WHERE post.id_post=info.id_post AND post.id_post=

Filename: /homepages/44/d508197743/htdocs/models/database.php

Line Number: 227