SELECT * FROM `VectorData`, `VectorCategories`, `BPID` WHERE `VectorID` = 6663 AND VectorData.`VectorCatID` = VectorCategories.`VectorCatID` AND BPID.`BPID` = VectorData.`VectorBPID` AND BPID.`BPID` NOT IN (268, 360)

Error: Invalid query, MySQL server has gone away