Database query failed. SELECT * FROM tenders WHERE state = 1 and id = LIMIT 1