HI all
Can anyone point me in the right direct of how to stop this error
Query:
SELECT `p`.*, `f`.`ID`,
if(`DateLastNav` > SUBDATE(NOW( ), INTERVAL 1 MINUTE ), 1, 0) AS `is_online`,
UNIX_TIMESTAMP(p.`DateLastLogin`) AS 'TS_DateLastLogin', UNIX_TIMESTAMP(p.`DateReg`) AS 'TS_DateReg' FROM (
SELECT `ID` AS `ID` FROM `sys_friend_list` WHERE `Profile` = '1' AND `Check` =1
UNION
SELECT `Profile` AS `ID` FROM `sys_friend_list` WHERE `ID` = '1' AND `Check` =1
) AS `f`
INNER JOIN `Profiles` AS `p` ON `p`.`ID` = `f`.`ID`
WHERE 1 AND (p.`DateLastNav` > SUBDATE(NOW(), INTERVAL 1 MINUTE))
ORDER BY p.`DateLastNav` DESC
Mysql error: Got error 28 from storage engine
Found error in the file '/home/xxxxxxx/public_html/inc/profiles.inc.php' at line 397.
Called 'db_res' function with erroneous argument #0.
line 397 states $vProfiles = db_res($sqlQuery);
Im using 7.07 btw
Thanks in advance
Jim
