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