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