Phpmyadmin [sql.lib.php] BUG on Ubuntu 18.04

In most of phpmyadmin section you are experiencing the sql.lib.php line number 614. This error message shows everytime when you fetch data. It seems that there is some syntax error in phpmyadmin lib file.

Here it is how can we remove it.

 

couse of phpmyadmin’s library try to counting some parameter but got wrong a code. so when i looking at this line 601, I found this code at this path

$ /usr/share/phpmyadmin/libraries/sql.lib.php
on exact line no 613 there is a minor error
|| (count($analyzed_sql_results[‘select_expr’] == 1)

that’s missing close bracket ‘)’ before operation with 1. So i changed it to

|| (count($analyzed_sql_results[‘select_expr’]) == 1

remove last close bracket ‘)’ at this line like this,

Also on line number 614 don’t forget to remove extra bracket.