$sql_visibility will always evaluate to true