#2816 - PG::SyntaxError: ERROR: non-integer constant in ORDER BY

An ActiveRecord::StatementInvalid occurred in kiosks#index:

 PG::SyntaxError: ERROR:  non-integer constant in ORDER BY
LINE 1: ...yed AS deployed FROM "kiosks") AS kiosks ORDER BY '' asc LIM...
                                                            ^

 app/datatables/kiosks_datatable.rb:29:in `reject'


-------------------------------
Request:
-------------------------------

 * URL        : https://bikelink.org/kiosks.json?sEcho=2&iColumns=7&sColumns=%2C%2C%2C%2C%2C%2C&iDisplayStart=0&iDisplayLength=50&mDataProp_0=0&sSearch_0=&bRegex_0=false&bSearchable_0=true&bSortable_0=true&mDataProp_1=1&sSearch_1=&bRegex_1=false&bSearchable_1=true&bSortable_1=true&mDataProp_2=2&sSearch_2=&bRegex_2=false&bSearchable_2=true&bSortable_2=true&mDataProp_3=3&sSearch_3=&bRegex_3=false&bSearchable_3=true&bSortable_3=true&mDataProp_4=4&sSearch_4=&bRegex_4=false&bSearchable_4=true&bSortable_4=true&mDataProp_5=5&sSearch_5=&bRegex_5=false&bSearchable_5=true&bSortable_5=true&mDataProp_6=6&sSearch_6=&bRegex_6=false&bSearchable_6=true&bSortable_6=true&sSearch=&bRegex=false&iSortCol_0=1&sSortDir_0=asc&iSortingCols=1&_=1636138877315
 * HTTP Method: GET
 * IP address : 98.35.154.160
 * Parameters : {"sEcho"=>"2", "iColumns"=>"7", "sColumns"=>",,,,,,", "iDisplayStart"=>"0", "iDisplayLength"=>"50", "mDataProp_0"=>"0", "sSearch_0"=>"", "bRegex_0"=>"false", "bSearchable_0"=>"true", "bSortable_0"=>"true", "mDataProp_1"=>"1", "sSearch_1"=>"", "bRegex_1"=>"false", "bSearchable_1"=>"true", "bSortable_1"=>"true", "mDataProp_2"=>"2", "sSearch_2"=>"", "bRegex_2"=>"false", "bSearchable_2"=>"true", "bSortable_2"=>"true", "mDataProp_3"=>"3", "sSearch_3"=>"", "bRegex_3"=>"false", "bSearchable_3"=>"true", "bSortable_3"=>"true", "mDataProp_4"=>"4", "sSearch_4"=>"", "bRegex_4"=>"false", "bSearchable_4"=>"true", "bSortable_4"=>"true", "mDataProp_5"=>"5", "sSearch_5"=>"", "bRegex_5"=>"false", "bSearchable_5"=>"true", "bSortable_5"=>"true", "mDataProp_6"=>"6", "sSearch_6"=>"", "bRegex_6"=>"false", "bSearchable_6"=>"true", "bSortable_6"=>"true", "sSearch"=>"", "bRegex"=>"false", "iSortCol_0"=>"1", "sSortDir_0"=>"asc", "iSortingCols"=>"1", "_"=>"1636138877315", "controller"=>"kiosks", "action"=>"index", "format"=>"json"}
 * Timestamp  : 2021-11-05 19:01:22 UTC
 * Server : www-3.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 31294

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"4076b8b912eafd3826eadceccd7b20c1",
  "warden.user.person.key"=>[[31069], "v64WXxPZ8M1zqfDtyyMc"],
  "_csrf_token"=>"pqFt4YMVw4Fzbm/IdG4ZtCoghZtLuBqzIcqCHMHBwqw="}

-------------------------------
Backtrace:
-------------------------------

 app/datatables/kiosks_datatable.rb:29:in `reject'
 app/datatables/kiosks_datatable.rb:29:in `data'
 app/datatables/kiosks_datatable.rb:17:in `as_json'
 app/controllers/kiosks_controller.rb:60:in `block (2 levels) in list'
 app/controllers/kiosks_controller.rb:57:in `list'
 app/controllers/kiosks_controller.rb:49:in `index'
Reload