Database error in Every Body Tested
Query:
SELECT `Profiles`.* FROM `FriendList`
                                                                LEFT JOIN `Profiles` ON (`Profiles`.`ID` = `FriendList`.`Profile` AND `FriendList`.`ID` = '1' OR `Profiles`.`ID` = `FriendList`.`ID` AND `FriendList`.`Profile` = '1')
                                                                WHERE (`FriendList`.`Profile` = '1' OR `FriendList`.`ID` = '1') AND `FriendList`.`Check` = '1' ORDER BY `Profiles`.`Picture` DESC

Mysql error:
Unknown column 'Profiles.Picture' in 'order clause'

Found error in file /home/everybodytested.com/viewFriends.php
at line 63. Called db_res function
with erroneous argument #0

Debug backtrace:
Array
(
   [1] => Array
       (
           [file] => /home/everybodytested.com/viewFriends.php
           [line] => 63
           [function] => db_res
           [args] => Array
               (
                   [0] => SELECT `Profiles`.* FROM `FriendList`
                                                                LEFT JOIN `Profiles` ON (`Profiles`.`ID` = `FriendList`.`Profile` AND `FriendList`.`ID` = '1' OR `Profiles`.`ID` = `FriendList`.`ID` AND `FriendList`.`Profile` = '1')
                                                                WHERE (`FriendList`.`Profile` = '1' OR `FriendList`.`ID` = '1') AND `FriendList`.`Check` = '1' ORDER BY `Profiles`.`Picture` DESC
               )

       )

   [2] => Array
       (
           [file] => /home/everybodytested.com/viewFriends.php
           [line] => 47
           [function] => getFriendList
           [args] => Array
               (
                   [0] => 1
               )

       )

   [3] => Array
       (
           [file] => /home/everybodytested.com/viewFriends.php
           [line] => 39
           [function] => PageCompPageMainCode
           [args] => Array
               (
               )

       )

)

Called script: /viewFriends.php

Request parameters:
Array
(
   [iUser] => 1
)

--
Auto-report system