diff --git a/lib/builder.js b/lib/builder.js
index <HASH>..<HASH> 100644
--- a/lib/builder.js
+++ b/lib/builder.js
@@ -147,7 +147,7 @@ module.exports = function (options) {
         var searchArray = [];
 
         _u.each(requestQuery.columns, function(column, i){
-            var colName = sanitize(self.aSearchColumns[i] || column.data),
+            var colName = sanitize(self.aSearchColumns[i] || column.name),
                 searchVal = sanitize(global ? requestQuery.search.value : column.search.value);
 
             if (colName && searchVal && column.searchable === 'true'){
@@ -191,8 +191,8 @@ module.exports = function (options) {
             var order = requestQuery.order[fdx],
                 column = requestQuery.columns[order.column];
 
-            if (column.orderable === 'true' && column.data) {
-                query.push(column.data + " " + order.dir);
+            if (column.orderable === 'true' && column.name) {
+                query.push(column.name + " " + order.dir);
             }
         }
         if (query.length)
Use columns[i].name to build WHERE clauses so that columns[i].data can be used for its intended purpose (see <URL>)