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