Muchas gracias por la respuesta :)
He estado probándo y me devuelve esto:
Código:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'starting AND ending' at line 1
:S
Muchísimas gracias por la respuesta enserio :P