Mysql only returning one row 259 times