Error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Games.user_id' in 'where clause'
<p class="notice">
<strong>SQL Query: </strong>
SELECT `User`.`id`, `User`.`username`, `User`.`email`, `User`.`password`, `User`.`role`, `User`.`active`, `User`.`created`, `User`.`country_id`, `User`.`birth_date`, `User`.`gender`, `User`.`adcode`, `User`.`picture`, (SELECT COUNT(id) FROM games where `Games`.`user_id`=`User`.`id`) AS `User__uploadcount`, ((SELECT SUM(current) FROM rates where `Rates`.`game_id` IN (SELECT id FROM games where `Games`.`user_id`=`User`.`id`))) AS `User__totalrate`, `Country`.`id`, `Country`.`name` FROM `NewDB`.`users` AS `User` LEFT JOIN `NewDB`.`countries` AS `Country` ON (`User`.`country_id` = `Country`.`id`) WHERE `User`.`id` IS NULL LIMIT 1 </p>
Database Error
Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Games.user_id' in 'where clause'