PDA

View Full Version : MySQL problem


X-Sector
12-23-2004, 08:30 PM
Not sure about this mysql error but when l go to a page of our site:
I get this error

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT * FROM style
WHERE (styleid = 3)
OR styleid = 3
ORDER BY styleid ASC
LIMIT 1

mysql error: Malformed packet

mysql error number: 2027

Date: Thursday 23rd of December 2004 02:26:42 PM
Script: http://www.xelation.net/forums/login.php
Referer:
Username: Logica
IP Address:

what could it be mean? and is there any way to fix it.

amykhar
12-23-2004, 09:35 PM
The statement makes no sense. You are looking only for styles = 3 with this query. You don't need the OR part. You also don't need the order by, because if you have a styleid=3, that's all you're going to get back.