[aur-dev][PATCH 1/3] fix broken SQL query that always failed