Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "v9kst60egk75sg9oaj00qvq6d0"