Warning:pg_query() [function.pg-query]: Query failed: ERROR: operator does not exist: integer ~~* unknown LINE 1: SELECT ad_ad.* FROM "ad_ad" WHERE "id" ILIKE '11' ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
pg_query('SELECT ad_ad.* FROM "ad_ad" WHERE "id" ILIKE '11'' , ):search.inc.php:266
search::call('SELECT ad_ad.* FROM "ad_ad" WHERE "id" ILIKE '11'' , ):search.inc.php:284
search::execute():search.inc.php:207
search::fetch():thing_search.inc.php:39
thing_search::fetch():ad.inc.php:214
ad_get_ad_by_id('11' , ):redirect.php:22

Fatal error: Call to a member function increment_stats() on a non-object in /var/www/clients/client0/web12/web/helpers/redirect.php on line 40