Error Returned
A Warning was returned in Krebs.
We apologize for any inconvenience this problem has caused. Details follow.

pg_exec() [function.pg-exec]: Query failed: ERROR: syntax error at or near "AND" at character 41

The current file is /var/www/shared/db.inc and the executing line is 120.
The calling file is /var/www/vhosts/krebs.com/httpdocs/products.php.
The HTTP USER AGENT is CCBot/1.0 (+http://www.commoncrawl.org/bot.html).

Error Returned
A User Error was returned in Krebs.
We apologize for any inconvenience this problem has caused. Details follow.

An error occurred while executing db.inc:os_exec_sql

Calling proc: krebs:products.php
SQL: SELECT *
FROM html_img
WHERE record_id=
AND table_name='td_product' ORDER BY ordr ASC
Error: array (
'proc' => 'krebs:products.php',
'db_cnct' => NULL,
'db' => 'pgsql',
)


The current file is /var/www/shared/db.inc and the executing line is 125.
The calling file is /var/www/vhosts/krebs.com/httpdocs/products.php.
The HTTP USER AGENT is CCBot/1.0 (+http://www.commoncrawl.org/bot.html).
Due to the nature of this problem this application will be terminated.