Database error

Database error in Keys Flea Market Community
Query:
SELECT COUNT(*) AS `count` FROM `BoughtContacts`
WHERE `IDBuyer` = 0 AND `IDContact` = 181
OR `IDBuyer` = 181 AND `IDContact` = 0

Mysql error:
Lost connection to MySQL server during query

Found error in file /home/content/m/r/o/mroyusa69/html/community/inc/profiles.inc.php
at line 186. Called db_arr function
with erroneous argument #0

Debug backtrace:
Array
(
    [1] => Array
        (
            [file] => /home/content/m/r/o/mroyusa69/html/community/inc/db.inc.php
            [line] => 115
            [function] => db_res
            [args] => Array
                (
                    [0] => SELECT COUNT(*) AS `count` FROM `BoughtContacts`
WHERE `IDBuyer` = 0 AND `IDContact` = 181
OR `IDBuyer` = 181 AND `IDContact` = 0
                    [1] => 1
                )

        )

    [2] => Array
        (
            [file] => /home/content/m/r/o/mroyusa69/html/community/inc/profiles.inc.php
            [line] => 186
            [function] => db_arr
            [args] => Array
                (
                    [0] => SELECT COUNT(*) AS `count` FROM `BoughtContacts`
WHERE `IDBuyer` = 0 AND `IDContact` = 181
OR `IDBuyer` = 181 AND `IDContact` = 0
                )

        )

    [3] => Array
        (
            [file] => /home/content/m/r/o/mroyusa69/html/community/greet.php
            [line] => 59
            [function] => contact_allowed
            [args] => Array
                (
                    [0] => 0
                    [1] => 181
                )

        )

    [4] => Array
        (
            [file] => /home/content/m/r/o/mroyusa69/html/community/greet.php
            [line] => 37
            [function] => PageCompPageMainCode
            [args] => Array
                (
                )

        )

)


Called script: /community/greet.php

Request parameters:
Array
(
    [sendto] => 181
)


--
Auto-report system

Quote · 10 Jan 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.