[fix] add missing select in SQL query after 93ab18b6e36e487b704209bb32432812394da7cb