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