Warning: pg_query() [function.pg-query]: Query failed: ERROR: missing FROM-clause entry for table "function" LINE 1: ...d mlsdata.county='CECIL' and mlsdata.listprice>=function.p... ^ in /home/webs/www.mibrahim.net/homes/include/configpg.php on line 35
Array
(
    [0] => Array
        (
            [file] => /home/webs/www.mibrahim.net/homes/include/configpg.php
            [line] => 91
            [function] => query
            [args] => Array
                (
                    [0] => select count(listingkey) from mlsdata where  mlsdata.cityname='ELKTON' and  mlsdata.county='CECIL' and  mlsdata.listprice>=function.pg and listprice<=query
                )

        )

    [1] => Array
        (
            [file] => /home/webs/www.mibrahim.net/homes/lib/util.php
            [line] => 489
            [function] => query_row
            [args] => Array
                (
                    [0] => select count(listingkey) from mlsdata where  mlsdata.cityname='ELKTON' and  mlsdata.county='CECIL' and  mlsdata.listprice>=function.pg and listprice<=query
                )

        )

    [2] => Array
        (
            [file] => /home/webs/www.mibrahim.net/homes/index.php
            [line] => 351
            [function] => DisplayListings
            [args] => Array
                (
                    [0] => 
                    [1] => short
                    [2] =>  mlsdata.cityname='ELKTON' and  mlsdata.county='CECIL' and  mlsdata.listprice>=function.pg and listprice<=query
                )

        )

    [3] => Array
        (
            [file] => /home/webs/www.mibrahim.net/homes/search
            [line] => 3
            [args] => Array
                (
                    [0] => /home/webs/www.mibrahim.net/homes/index.php
                )

            [function] => include
        )

)
PgSQL ERROR: ERROR:  missing FROM-clause entry for table "function"
LINE 1: ...d  mlsdata.county='CECIL' and  mlsdata.listprice>=function.p...
                                                             ^ SQL is: select count(listingkey) from mlsdata where  mlsdata.cityname='ELKTON' and  mlsdata.county='CECIL' and  mlsdata.listprice>=function.pg and listprice<=query