There has been a SQL error

Error Text: Table 'lovereading.StockDiscount13' doesn't exist

SQL String:

SELECT BookIndex.*, Stock13.Qty, Stock13.Status, StockDiscount13.Discount
				FROM BookIndex  LEFT JOIN StockDiscount13 ON BookIndex.isbn13 = StockDiscount13.TheISBN  LEFT OUTER JOIN Stock13 ON BookIndex.isbn13 = Stock13.ISBN 
				WHERE isbn13 NOT IN ('9780007292417','9780007299492','9780007304110','9780007311170','9780007344314','9780007350506','9780007351459','9780007353583','9780007359110','9780007362622','9780007421589','9780007464579','9780007472529','9780007481583','9780007498000','9780007501311','9780007504275','9780007506095','9780007507689','9780007522835','9780007525041','9780007545711','9780007545742','9780007548675','9780007548699','9780007557899','9780007558506','9780007574575','9780007579884','9780007592968','9780007598892','9780008108199','9780008113476','9780008118914','9780008120313','9780008126117','9780008126155','9780008126919','9780008130824','9780008132521','9780008135386','9780008139445','9780008139902','9780008141233','9780008160388','9780008160524','9780008162474','9780008163297','9780008167936','9780008171124','9780008171131','9780008171148','9780008171155','9780008171377','9780008171414','9780008172121','9780008182694','9780008192754','9780008202316','9780008209629','9780008212315','9780008214357','9780008242237','9780008242794','9780008258252','9780062020642','9780062313546','9780091959784','9780099229117','9780099529125','9780099579083','9780099579281','9780113228690','9780132499767','9780140623482','9780141198910','9780141319131','9780141321264','9780141321271','9780141321288','9780141322032','9780141327655','9780141331980','9780141380780','9780141384511','9780174326137','9780175114481','9780190222246','9780198273851','9780198293842','9780198297468','9780199561124','9780224098106','9780230705852','9780230705852','9780230709669','9780230739413','9780230745124','9780230754317','9780230754959','9780230758506','9780230758865','9780230758865','9780230758872','9780230763005','9780233001890','9780241965160','9780263225235','9780263239560','9780263239980','9780263247572','9780263255461','9780263892352','9780263897739','9780263898613','9780263909715','9780263915372','9780273725961','9780273757252','9780297867296','9780297867487','9780297867968','9780297868972','9780321701275','9780330511988','9780330511995','9780330512008','9780330512787','9780330518734','9780330533850','9780330537964','9780330537964','9780333567012','9780340822906','9780340830925','9780340831717','9780340832608','9780340836538','9780340836545','9780340840467','9780340840504','9780340840542','9780340840573','9780340898062','9780340898079','9780340953051','9780374154714','9780385342902','9780385619011','9780415548601','9780433077787','9780435126278','9780443065064','9780470017548','9780472066315','9780472096312','9780486273723','9780486458076','9780520015449','9780521171861','9780521690959','9780552774390','9780552778459','9780552779685','9780567032577','9780567198310','9780571230945','9780571275748','9780571317417','9780595241200','9780595495450','9780708310083','9780708321560','9780713668780','9780718156442','9780718159375','9780718177072','9780718199814','9780718199814','9780719520549','9780743449076','9780744570519','9780744583243','9780747592310','9780748127726','9780749005689','9780750666985','9780751544800','9780752889542','9780752897882','9780755348107','9780755359882','9780755379996','9780755390809','9780758261601','9780758261618','9780758261625','9780761909828','9780765331724','9780766154797','9780781772624','9780781772624','9780785107897','9780785108290','9780785115687','9780826347541','9780850453331','9780857077394','9780857079381','9780857157577','9780857159922','9780857520180','9780857522153','9780857522153','9780857534460','9780857868978','9780859652629','9780862788988','9780865621886','9780871403766','9780871407771','9780873491808','9780873712880','9780876091920','9780906282533','9780946719426','9780946719426','9780947349363','9780952102007','9780954202101','9780954202118','9780954202125','9780954202132','9780954779405','9780955745904','9780955745942','9780957185302','9780957544321','9780970211316','9780982750766','9780986406409','9781103187478','9781103187485','9781103459346','9781103459377','9781103782222','9781103782321','9781110209385','9781110209415','9781116447163','9781116447170','9781116447187','9781116447194','9781118651162','9781138232310','9781138232327','9781142991364','9781142994068','9781179075495','9781240066803','9781243440822','9781243581075','9781243748409','9781243766267','9781291578966','9781304843531','9781304888860','9781312374126','9781329132696','9781405054515','9781405091213','9781405209816','9781405209823','9781405209830','9781405209847','9781405209854','9781405210232','9781405212212','9781405212229','9781405212823','9781405216937','9781405216944','9781405216951','9781405219020','9781405219037','9781405226011','9781405226011','9781405241342','9781405509183','9781405882422','9781405923125','9781406209518','9781406209525','9781406209532','9781406209549','9781406209556','9781406209563','9781406209570','9781406211696','9781406211771','9781406310399','9781406310498','9781406310504','9781406316988','9781406336511','9781406352603','9781406352603','9781406726947','9781407131047','9781407423784','9781408702123','9781408705056','9781408836439','9781408856000','9781408916667','9781408930090','9781408930090','9781408933497','9781408952900','9781408953273','9781408953280','9781408953426','9781408987896','9781408987902','9781408988107','9781408988107','9781408988312','9781408988329','9781408988510','9781408989043','9781408989050','9781408989067','9781408989388','9781409101284','9781409121053','9781409131472','9781409134350','9781409135951','9781409137443','9781409137580','9781409140313','9781409142966','9781409143697','9781409144526','9781409144724','9781409144755','9781409145783','9781423900832','9781424195794','9781425161897','9781425970635','9781432700522','9781432726782','9781434353382','9781436366328','9781436366335','9781438524153','9781438998220','9781438998237','9781440107788','9781444116212','9781444704556','9781444736342','9781444754001','9781444757460','9781444764611','9781444766677','9781444777437','9781444778151','9781444796513','9781444797138','9781444798944','9781445508931','9781445660417','9781445874951','9781447200314','9781447212874','9781447218531','9781447279761','9781448941421','9781449766221','9781449766238','9781449766245','9781450037532','9781450072168','9781451232332','9781452504582','9781452504599','9781456722623','9781458887863','9781459686786','9781462653300','9781465302526','9781465302526','9781465379108','9781471128806','9781471144820','9781471151064','9781471321115','9781471400056','9781471400148','9781471405044','9781471806094','9781471806100','9781471806186','9781471806209','9781471806216','9781471806254','9781471806261','9781472079244','9781472108159','9781472108524','9781472205940','9781472216847','9781472218971','9781472228376','9781472232601','9781473212565','9781473619722','9781475814255','9781475936438','9781475936452','9781475938609','9781477151426','9781482833393','9781482833409','9781490800769','9781490800776','9781491876947','9781494312862','9781494409982','9781494430313','9781494760625','9781494844417','9781496098139','9781496931498','9781509801152','9781509808304','9781509813636','9781509817948','9781509819973','9781510001374','9781579126308','9781579126315','9781579126322','9781579127947','9781579127961','9781592533466','9781593501556','9781596870345','9781596871038','9781604741643','9781604776669','9781604777895','9781604947977','9781608134922','9781608600984','9781612130286','9781612130583','9781613749371','9781615462865','9781616673727','9781616673734','9781616673987','9781624881282','9781624886690','9781625671240','9781682298978','9781770494961','9781770497795','9781780222196','9781780875309','9781780887661','9781780887661','9781780888668','9781780995519','978178112086','9781781254967','9781781381922','9781781850091','9781781851814','9781781853764','9781781857267','9781781859186','9781782023524','9781782300335','9781782346494','9781782346500','9781782346517','9781782346524','9781782346531','9781782346548','9781782391548','9781782393771','9781782396772','9781783060542','9781784081133','9781784750237','9781784755393','9781785072376','9781841587493','9781842991145','9781842992074','9781842993132','9781842993668','9781843121886','9781843913726','9781843914822','9781843914839','9781843915720','9781844014897','9781844280926','9781844280933','9781844280940','9781844280957','9781844560981','9781845972813','9781846244605','9781846319396','9781846689659','9781847154293','9781847154293','9781847379313','9781847474285','9781847474308','9781847532176','9781847807038','9781848548459','9781849019644','9781849031455','9781849031462','9781849434812','9781849938044','9781853118432','9781857756425','9781857803181','9781860290701','9781860499029','9781871510195','9781874534488','9781876819323','9781904419228','9781904999249','9781905019168','9781905382538','9781905490783','9781905621026','9781905654697','9781907016042','9781907179099','9781907565700','9781907565717','9781908252135','9781908800053','9781908827234','9781908885760','9781909270930','9781909270947','9781909270954','9781909270961','9781909270978','9781909881211','9781927004166','9781927004173','9781930493919','9781933662756','9781933784731','9782970060253','9783037666265','9783037666500','9783540340607','9783639157277','9783639171044','9783640747573','9783640992577','9783656499770','9783659401220','9783815588840','9783815588857','9783838139005','9783838603827','9783844384666','9784871878401','9786130285463','9786130702809','9786133350120','9786137020425','9788131501344','9788131902370','9788184746761','9788494304804','9788847026186','9789053494318','9789076863344') AND isbn13="9780750280419" AND  BookIndex.bic like "y%" 

URL: /book/9780750280419/isbn/Big-Business-Cadbury-by-Cath-Senker.html

Referrer:


Array
(
    [SCRIPT_URL] => /book/9780750280419/isbn/Big-Business-Cadbury-by-Cath-Senker.html
    [SCRIPT_URI] => http://www.lovereading4kids.co.uk/book/9780750280419/isbn/Big-Business-Cadbury-by-Cath-Senker.html
    [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
    [LD_LIBRARY_PATH] => /usr/local/apache2/lib
    [REMOTE_ADDR] => 54.221.76.68
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] => 
    [CONTEXT_DOCUMENT_ROOT] => /home/sites/www.lovereading4kids.co.uk/www
    [SCRIPT_FILENAME] => /home/sites/www.lovereading4kids.co.uk/www/book.php
    [SERVER_PROTOCOL] => HTTP/1.0
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /book/9780750280419/isbn/Big-Business-Cadbury-by-Cath-Senker.html
    [SCRIPT_NAME] => /book.php
    [PATH_INFO] => /9780750280419/isbn/Big-Business-Cadbury-by-Cath-Senker.html
    [PATH_TRANSLATED] => /home/sites/www.lovereading4kids.co.uk/www/9780750280419/isbn/Big-Business-Cadbury-by-Cath-Senker.html
    [PHP_SELF] => /book.php/9780750280419/isbn/Big-Business-Cadbury-by-Cath-Senker.html
    [REQUEST_TIME_FLOAT] => 1513626321.649
    [REQUEST_TIME] => 1513626321
)

Trace:


Step 0 => 
        (
            [file] => classes/gardners.class.php
            [function] => query_2_array - line 138
            [class] => DB
            [args] => 
                (
                    [0] => SELECT BookIndex.*, Stock13.Qty, Stock13.Status, StockDiscount13.Discount
				FROM BookIndex  LEFT JOIN StockDiscount13 ON BookIndex.isbn13 = StockDiscount13.TheISBN  LEFT OUTER JOIN Stock13 ON BookIndex.isbn13 = Stock13.ISBN 
				WHERE isbn13 NOT IN ('9780007292417','9780007299492','9780007304110','9780007311170','9780007344314','9780007350506','9780007351459','9780007353583','9780007359110','9780007362622','9780007421589','9780007464579','9780007472529','9780007481583','9780007498000','9780007501311','9780007504275','9780007506095','9780007507689','9780007522835','9780007525041','9780007545711','9780007545742','9780007548675','9780007548699','9780007557899','9780007558506','9780007574575','9780007579884','9780007592968','9780007598892','9780008108199','9780008113476','9780008118914','9780008120313','9780008126117','9780008126155','9780008126919','9780008130824','9780008132521','9780008135386','9780008139445','9780008139902','9780008141233','9780008160388','9780008160524','9780008162474','9780008163297','9780008167936','9780008171124','9780008171131','9780008171148','9780008171155','9780008171377','9780008171414','9780008172121','9780008182694','9780008192754','9780008202316','9780008209629','9780008212315','9780008214357','9780008242237','9780008242794','9780008258252','9780062020642','9780062313546','9780091959784','9780099229117','9780099529125','9780099579083','9780099579281','9780113228690','9780132499767','9780140623482','9780141198910','9780141319131','9780141321264','9780141321271','9780141321288','9780141322032','9780141327655','9780141331980','9780141380780','9780141384511','9780174326137','9780175114481','9780190222246','9780198273851','9780198293842','9780198297468','9780199561124','9780224098106','9780230705852','9780230705852','9780230709669','9780230739413','9780230745124','9780230754317','9780230754959','9780230758506','9780230758865','9780230758865','9780230758872','9780230763005','9780233001890','9780241965160','9780263225235','9780263239560','9780263239980','9780263247572','9780263255461','9780263892352','9780263897739','9780263898613','9780263909715','9780263915372','9780273725961','9780273757252','9780297867296','9780297867487','9780297867968','9780297868972','9780321701275','9780330511988','9780330511995','9780330512008','9780330512787','9780330518734','9780330533850','9780330537964','9780330537964','9780333567012','9780340822906','9780340830925','9780340831717','9780340832608','9780340836538','9780340836545','9780340840467','9780340840504','9780340840542','9780340840573','9780340898062','9780340898079','9780340953051','9780374154714','9780385342902','9780385619011','9780415548601','9780433077787','9780435126278','9780443065064','9780470017548','9780472066315','9780472096312','9780486273723','9780486458076','9780520015449','9780521171861','9780521690959','9780552774390','9780552778459','9780552779685','9780567032577','9780567198310','9780571230945','9780571275748','9780571317417','9780595241200','9780595495450','9780708310083','9780708321560','9780713668780','9780718156442','9780718159375','9780718177072','9780718199814','9780718199814','9780719520549','9780743449076','9780744570519','9780744583243','9780747592310','9780748127726','9780749005689','9780750666985','9780751544800','9780752889542','9780752897882','9780755348107','9780755359882','9780755379996','9780755390809','9780758261601','9780758261618','9780758261625','9780761909828','9780765331724','9780766154797','9780781772624','9780781772624','9780785107897','9780785108290','9780785115687','9780826347541','9780850453331','9780857077394','9780857079381','9780857157577','9780857159922','9780857520180','9780857522153','9780857522153','9780857534460','9780857868978','9780859652629','9780862788988','9780865621886','9780871403766','9780871407771','9780873491808','9780873712880','9780876091920','9780906282533','9780946719426','9780946719426','9780947349363','9780952102007','9780954202101','9780954202118','9780954202125','9780954202132','9780954779405','9780955745904','9780955745942','9780957185302','9780957544321','9780970211316','9780982750766','9780986406409','9781103187478','9781103187485','9781103459346','9781103459377','9781103782222','9781103782321','9781110209385','9781110209415','9781116447163','9781116447170','9781116447187','9781116447194','9781118651162','9781138232310','9781138232327','9781142991364','9781142994068','9781179075495','9781240066803','9781243440822','9781243581075','9781243748409','9781243766267','9781291578966','9781304843531','9781304888860','9781312374126','9781329132696','9781405054515','9781405091213','9781405209816','9781405209823','9781405209830','9781405209847','9781405209854','9781405210232','9781405212212','9781405212229','9781405212823','9781405216937','9781405216944','9781405216951','9781405219020','9781405219037','9781405226011','9781405226011','9781405241342','9781405509183','9781405882422','9781405923125','9781406209518','9781406209525','9781406209532','9781406209549','9781406209556','9781406209563','9781406209570','9781406211696','9781406211771','9781406310399','9781406310498','9781406310504','9781406316988','9781406336511','9781406352603','9781406352603','9781406726947','9781407131047','9781407423784','9781408702123','9781408705056','9781408836439','9781408856000','9781408916667','9781408930090','9781408930090','9781408933497','9781408952900','9781408953273','9781408953280','9781408953426','9781408987896','9781408987902','9781408988107','9781408988107','9781408988312','9781408988329','9781408988510','9781408989043','9781408989050','9781408989067','9781408989388','9781409101284','9781409121053','9781409131472','9781409134350','9781409135951','9781409137443','9781409137580','9781409140313','9781409142966','9781409143697','9781409144526','9781409144724','9781409144755','9781409145783','9781423900832','9781424195794','9781425161897','9781425970635','9781432700522','9781432726782','9781434353382','9781436366328','9781436366335','9781438524153','9781438998220','9781438998237','9781440107788','9781444116212','9781444704556','9781444736342','9781444754001','9781444757460','9781444764611','9781444766677','9781444777437','9781444778151','9781444796513','9781444797138','9781444798944','9781445508931','9781445660417','9781445874951','9781447200314','9781447212874','9781447218531','9781447279761','9781448941421','9781449766221','9781449766238','9781449766245','9781450037532','9781450072168','9781451232332','9781452504582','9781452504599','9781456722623','9781458887863','9781459686786','9781462653300','9781465302526','9781465302526','9781465379108','9781471128806','9781471144820','9781471151064','9781471321115','9781471400056','9781471400148','9781471405044','9781471806094','9781471806100','9781471806186','9781471806209','9781471806216','9781471806254','9781471806261','9781472079244','9781472108159','9781472108524','9781472205940','9781472216847','9781472218971','9781472228376','9781472232601','9781473212565','9781473619722','9781475814255','9781475936438','9781475936452','9781475938609','9781477151426','9781482833393','9781482833409','9781490800769','9781490800776','9781491876947','9781494312862','9781494409982','9781494430313','9781494760625','9781494844417','9781496098139','9781496931498','9781509801152','9781509808304','9781509813636','9781509817948','9781509819973','9781510001374','9781579126308','9781579126315','9781579126322','9781579127947','9781579127961','9781592533466','9781593501556','9781596870345','9781596871038','9781604741643','9781604776669','9781604777895','9781604947977','9781608134922','9781608600984','9781612130286','9781612130583','9781613749371','9781615462865','9781616673727','9781616673734','9781616673987','9781624881282','9781624886690','9781625671240','9781682298978','9781770494961','9781770497795','9781780222196','9781780875309','9781780887661','9781780887661','9781780888668','9781780995519','978178112086','9781781254967','9781781381922','9781781850091','9781781851814','9781781853764','9781781857267','9781781859186','9781782023524','9781782300335','9781782346494','9781782346500','9781782346517','9781782346524','9781782346531','9781782346548','9781782391548','9781782393771','9781782396772','9781783060542','9781784081133','9781784750237','9781784755393','9781785072376','9781841587493','9781842991145','9781842992074','9781842993132','9781842993668','9781843121886','9781843913726','9781843914822','9781843914839','9781843915720','9781844014897','9781844280926','9781844280933','9781844280940','9781844280957','9781844560981','9781845972813','9781846244605','9781846319396','9781846689659','9781847154293','9781847154293','9781847379313','9781847474285','9781847474308','9781847532176','9781847807038','9781848548459','9781849019644','9781849031455','9781849031462','9781849434812','9781849938044','9781853118432','9781857756425','9781857803181','9781860290701','9781860499029','9781871510195','9781874534488','9781876819323','9781904419228','9781904999249','9781905019168','9781905382538','9781905490783','9781905621026','9781905654697','9781907016042','9781907179099','9781907565700','9781907565717','9781908252135','9781908800053','9781908827234','9781908885760','9781909270930','9781909270947','9781909270954','9781909270961','9781909270978','9781909881211','9781927004166','9781927004173','9781930493919','9781933662756','9781933784731','9782970060253','9783037666265','9783037666500','9783540340607','9783639157277','9783639171044','9783640747573','9783640992577','9783656499770','9783659401220','9783815588840','9783815588857','9783838139005','9783838603827','9783844384666','9784871878401','9786130285463','9786130702809','9786133350120','9786137020425','9788131501344','9788131902370','9788184746761','9788494304804','9788847026186','9789053494318','9789076863344') AND isbn13="9780750280419" AND  BookIndex.bic like "y%" 
                )

        )

Step 1 => 
        (
            [file] => logic/book.logic.php
            [function] => load_book_from_isbn - line 155
            [class] => gardners
            [args] => 
                (
                    [0] => 9780750280419
                )

        )

Step 2 => 
        (
            [file] => book.php
            [args] => 
                (
                    [0] => /home/sites/www.lovereading4kids.co.uk/www/logic/book.logic.php
                )

            [function] => include - line 9
        )