Warning: pg_exec() [function.pg-exec]: Query failed: ERROR: invalid input syntax for integer: "" in /home/cbd/includes/lib.php on line 649

SQL Error

ERRORMSG: ERROR: invalid input syntax for integer: ""
SQL: SELECT a.*, b.name FROM ops a, ops_categories b WHERE a.categoryid=b.id AND a.opsindex=''