Bug #1225
closedSQL Error When Not Logged In
100%
Description
After installing and configuring Beta4 I get the following error when accessing the GJ front page if not logged it. When logged in, there is no error. I dont see where a table is being aliased with 'x'.
DB function failed with error number 1054
Unknown column 'x.id_user' in 'where clause' SQL=SELECT b.*, COUNT AS CAT_ISONLINE FROM `jos_gj_groups` AS a INNER JOIN `jos_gj_grcategory` AS b ON a.`category` = b.`id` INNER JOIN `jos_gj_users` AS c ON a.`id` = c.`id_group` INNER JOIN `jos_users` AS u ON c.`id_user` = u.`id` WHERE a.`active` = '1' AND b.`published` = '1' AND b.`access` <= 0 AND c.`status` = 'active' AND ( ( a.`type` IN ( '1', '2' ) ) OR ( a.`type` IN ( '3' )AND x.`id_user` = 0 ) ) GROUP BY b.`id`, b.`catname`, b.`cat_image`, b.`type` ORDER BY b.`ordering`