I've been given the following SQL Error and I would like to know how to fix it, Could anybody help me with this issue?
Database error in vBulletin 4.1.11:
Invalid SQL:
SELECT t1.templateid AS templateid_1, t1.title ,
t1.templateid AS templateid_1, t1.title AS title1, t1.styleid AS styleid_1 ,
t2.templateid AS templateid_2, t2.title AS title2, t2.styleid AS styleid_2
FROM template AS t1
LEFT JOIN template AS t1 ON (t1.title=t1.title AND t1.styleid=-2-1)
LEFT JOIN template AS t2 ON (t1.title=t2.title AND t2.styleid=17)
WHERE t1.styleid IN (-1,0)
ORDER BY t1.title;
MySQL Error : Not unique table/alias: 't1'
Error Number : 1066
Request Date : Friday, April 13th 2012 @ 05:58:37 PM
Error Date : Friday, April 13th 2012 @ 05:58:37 PM
Script : http://www.website.com/forums/admincp/plugin.php?do=productimport
Referrer : http://www.website.com/forums/admincp/plugin.php?do=productadd
IP Address : ***********
Username : Eric
Classname : vB_Database
MySQL Version : 5.1.61-log
Thanks.
Database error in vBulletin 4.1.11:
Invalid SQL:
SELECT t1.templateid AS templateid_1, t1.title ,
t1.templateid AS templateid_1, t1.title AS title1, t1.styleid AS styleid_1 ,
t2.templateid AS templateid_2, t2.title AS title2, t2.styleid AS styleid_2
FROM template AS t1
LEFT JOIN template AS t1 ON (t1.title=t1.title AND t1.styleid=-2-1)
LEFT JOIN template AS t2 ON (t1.title=t2.title AND t2.styleid=17)
WHERE t1.styleid IN (-1,0)
ORDER BY t1.title;
MySQL Error : Not unique table/alias: 't1'
Error Number : 1066
Request Date : Friday, April 13th 2012 @ 05:58:37 PM
Error Date : Friday, April 13th 2012 @ 05:58:37 PM
Script : http://www.website.com/forums/admincp/plugin.php?do=productimport
Referrer : http://www.website.com/forums/admincp/plugin.php?do=productadd
IP Address : ***********
Username : Eric
Classname : vB_Database
MySQL Version : 5.1.61-log
Thanks.
Comment