Bit puzzled by this, when i comment out the second query i get no error, the first query runs fine but when the second one (basicly the same query) is added i get you have an error in your sql syntax.
Little bit unsure why, any help is appreciated maybe there is a better way for me to do the query, thanks.
SQL ERROR [ mysqli ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 [1064]
SQL
SELECT username FROM forum_users WHERE user_id =
BACKTRACE
$challengingClan = $results->get('challengingClan');
$query = "SELECT username FROM forum_users WHERE user_id = $challengingClan";
$user1 = $db->sql_query($query);
$user1 = $db->sql_fetchrow($user1);
$opposingClan = $results->get('opposingClan');
$query = "SELECT username FROM forum_users WHERE user_id = $opposingClan";
$user2 = $db->sql_query($query);
$user2 = $db->sql_fetchrow($user2);
It is likely that
$results->get('opposingClan')is not returning anything. This should be easy to debug 🙂