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 'AND basketSession='d161d608d810a88921948e4965f3349e'' at line 1