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