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