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