From ce51039f65ec2105f792fbd1fa0a7fe3e28f1487 Mon Sep 17 00:00:00 2001 From: MehmetCan Date: Tue, 28 Jul 2015 11:14:09 +0300 Subject: [PATCH] syntax error at line 267 When I want to run this file, I got an error. Cause of the error that I'm getting at line 267 is you're using ` symbol, and it's giving me a syntax error. If you delete it, it's going to run properly. --- ssp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssp.php b/ssp.php index e4c6c9a..d0c0be4 100644 --- a/ssp.php +++ b/ssp.php @@ -264,7 +264,7 @@ static function simple ( $request, $sql_details, $table, $primaryKey, $columns, $recordsFiltered = $resFilterLength[0][0]; // Total data set length - $count_request = "SELECT COUNT(`{$primaryKey}`)"; + $count_request = "SELECT COUNT({$primaryKey})"; if($joinQuery){ $count_request .= $joinQuery; } else {