public function prefixOrderWithTable($data, $tableName)
    {
        if (count($data) == 0) {
            return $data;
        }

        foreach ($data as $key => $v) {
            // if $v is empty, we have a custom order like RAND() and do not have to prefix
            if (!empty($v)) {
                $newKey        = $tableName . '.' . trim($key, '`');
                $data[$newKey] = $v;
                unset($data[$key]);
            }
        }

        return $data;
    }