diff --git a/js/sql.js b/js/sql.js
index 8e7bab276..875b5017c 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -270,13 +270,13 @@ $(document).ready(function() {
PMA_ajaxShowMessage();
/**
- * @var the_form Object referring to the form element that paginates the results table
+ * @var $the_form Object referring to the form element that paginates the results table
*/
- var the_form = $(this).parent("form");
+ var $the_form = $(this).parent("form");
- $(the_form).append('');
+ $the_form.append('');
- $.post($(the_form).attr('action'), $(the_form).serialize(), function(data) {
+ $.post($the_form.attr('action'), $the_form.serialize(), function(data) {
$("#sqlqueryresults").html(data);
$("#sqlqueryresults").trigger('appendAnchor');
}) // end $.post()