How to error MySQL Error : Unknown column '0Array' in 'where clause' Error Number : 1054

admin

Administrator
Staff member
#1
Today tuoitreit.vn will teach you how to fix error MySQL Error : Unknown column '0Array' in 'where clause' Error Number : 1054

Code:
Invalid SQL:
SELECT * FROM post_thanks AS post_thanks INNER JOIN user AS user USING (userid) WHERE post_thanks.postid IN (0Array) ORDER BY post_thanks.username ASC;

MySQL Error : Unknown column '0Array' in 'where clause'
Error Number : 1054
Please do so
Open includes/functions_post_thanks.php
Find
PHP:
$post_ids = "0$postids";
Change to
PHP:
$post_ids = is_array($postids) ? implode(',',$postids) : "0$postids";
Good luck!
 

Facebook Comments

New posts Latest threads Latest profile posts

Top