WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 5]
SELECT team.user_id,, CONCAT(participant.first_name, ' ', participant.last_name) AS captain, team.goal,, user.user_registered AS date, team.message FROM wp_regesh_teams team LEFT JOIN wp_regesh_participants participant ON participant.user_id = team.captain_id LEFT JOIN wp_users user ON user.ID = team.user_id WHERE user.user_login = 'regeshykboys' and team.campaign_id =

Notice: Trying to get property 'user_id' of non-object in /mnt/data/home/ on line 14

Notice: Undefined variable: campaign in /mnt/data/home/ on line 16
No team for /regeshykboys