A Database Error Occurred

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 'and typeid = 150 and tableid='content'' at line 1

select c.id from content c inner join linkxrefs l on l.linkid = c.id where contentid = and typeid = 150 and tableid='content'

Filename: /srv/www/public/informa/iperbole/models/m_common.php

Line Number: 838