System is blocked by sql-select