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 'on-line' at line 1: SELECT * FROM websites_paginas WHERE id = 6%AA-edicion-de-la-formacion-a-mandos-del-programa-agente-tutor-2023-on-line