I've just begin beta testing with a few other users, and encountered this error.
Joomla 3.1.1
Jomsocial 2.8.4
plg_geommunitylocator 2.3.4
I get a 1064 error, which I think is malformed SQL. I ran the query that is echoed from the error, and the problem is obvious:
Code:
SELECT j.latitude, j.longitude, j.friendcount,j.thumb, u. FROM bcp3jm_community_users AS j LEFT JOIN bcp3jm_users AS u ON u.id = j.userid WHERE j.userid='3885' AND j.latitude<255 AND j.longitude<255
The u. table in the SELECT clause has no column specified. Once I added something like u.id, the query ran fine.
I found this section of code in the plugin:
Code:
$query = "SELECT j.latitude, j.longitude, j.friendcount,j.thumb, u.".$this->db->nameQuote($fnaming)." FROM #__community_users AS j LEFT JOIN #__users AS u ON u.id = j.userid WHERE j.userid='".$fid."' AND j.latitude<255 AND j.longitude<255";
Apparently $this->db->nameQuote($fnaming) is not correct or not being set, resulting in the malformed SQL.
Any tips on how to fix this would be appreciated. I've had to temporarily disabled the plugin, because the error is fatal.