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