![]() |
|
Thread Tools |
#1
|
|||
|
|||
Database error on profiles when user have >1000 friends
When an user have more than 1000 friends in the Friends List the profile shows Database error:
Invalid SQL: SELECT user.*, (user.options & 512) AS invisible , avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline AS avatardateline, customavatar.filedata_thumb, customavatar.height AS avheight, customavatar.width AS avwidth, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb FROM userlist AS userlist INNER JOIN user AS user ON (user.userid = userlist.relationid) LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) WHERE userlist.userid = 4434191 AND userlist.type = 'buddy' AND userlist.friend = 'yes' ORDER BY RAND() LIMIT 0, 1.005; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.005' at line 13 Error Number : 1064 I think that the problem is the decimal dot in 1.005, which vB control the friends ? Thanks No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:53.