Error
Database query error
Query:
SELECT UNIX_TIMESTAMP(`commDate`) AS `commDate`, `commText`, `profileID`, `Profiles`.`NickName` FROM `sharePhotoComments` INNER JOIN `Profiles` ON `Profiles`.`ID`=`sharePhotoComments`.`profileID` WHERE `medID`='3447' ORDER BY `commDate` DESC LIMIT 0,2
Mysql error:
Lost connection to MySQL server during query
Found error in file /home/admin/domains/dzieci.eu/public_html/viewPhoto.php
at line 320. Called db_res function with erroneous argument #0

Debug backtrace:
Array
(
    [1] => Array
        (
            [file] => /home/admin/domains/dzieci.eu/public_html/viewPhoto.php
            [line] => 320
            [function] => db_res
            [args] => Array
                (
                    [0] => SELECT UNIX_TIMESTAMP(`commDate`) AS `commDate`,
					  `commText`,
					  `profileID`,
					  `Profiles`.`NickName`
					  FROM
					  `sharePhotoComments`
					  INNER JOIN `Profiles` ON `Profiles`.`ID`=`sharePhotoComments`.`profileID`
					  WHERE `medID`='3447' ORDER BY `commDate` DESC LIMIT 0,2
                )

        )

    [2] => Array
        (
            [file] => /home/admin/domains/dzieci.eu/public_html/viewPhoto.php
            [line] => 199
            [function] => PageCompViewComments
            [args] => Array
                (
                    [0] => 
                )

        )

    [3] => Array
        (
            [file] => /home/admin/domains/dzieci.eu/public_html/viewPhoto.php
            [line] => 166
            [function] => PageCompCreateBlocks
            [args] => Array
                (
                    [0] => 1
                )

        )

)
Called script: /viewPhoto.php
Request parameters:
Array
(
    [fileID] => 3447
)