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