ERROR:  invalid input syntax for type integer: ""
LINE 4:   WHERE p.site_id = '26' AND p.status = 1 AND p.id = ''
                                                             ^


query(): SELECT p.*, b.id AS brand_id, b.name AS brand_name FROM p_product p LEFT JOIN p_brand b ON b.site_id = '26' AND p.brand_id = b.id WHERE p.site_id = '26' AND p.status = 1 AND p.id = ''

BACKTRACE:

File: /home/res/libs/class.pgDB.php [LINE 344]
Call: pgDB->backtrace()

File: /home/res/libs/class.pgDB.php [LINE 56]
Call: pgDB->error(Resource(#1)(pgsql link), Object(Exception))

File: /home/www/samsanchina.com/product.php [LINE 21]
Call: pgDB->query("SELECT p.*, b.id AS brand_id, b.name AS brand_name FROM p_pro...")