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