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='d8c270fb82e61a429b3b866578977767'' at line 1