* Fix wrong column in sql query