Damn select always returned 0