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