Invalid SQL: SELECT @settinggroupid:=settinggroupid FROM settinggroup WHERE title = 'Default PM' mysql error: You have an error in your SQL syntax near '@settinggroupid:=settinggroupid FROM settinggroup WHERE title = 'Default PM'' at line 1