There has been a SQL error

Error Text: Undeclared variable: $offset

SQL String:

SELECT 	KIDS_Book.*, KIDS_Author.*, BookIndex.pub_date
								FROM KIDS_Book LEFT OUTER JOIN KIDS_Author ON KIDS_Author.AuthorID = KIDS_Book.AuthorID
								LEFT JOIN BookIndex ON KIDS_Book.ISBN13 = BookIndex.isbn13
								WHERE (PrimaryGenre="12" OR SecondaryGenre LIKE "%#12#%") AND KIDS_Book.Enabled=1 ORDER BY PubDate DESC LIMIT $offset, 30

URL: /genreall/12/releasedesc/930

Referrer:


Array
(
    [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [HTTP_ACCEPT_LANGUAGE] => en-us,en-gb,en;q=0.7,*;q=0.3
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin
    [REMOTE_ADDR] => 54.80.232.40
    [SCRIPT_FILENAME] => /home/lovereading/www.lovereading4kids.co.uk/www/genreall.php
    [SERVER_PROTOCOL] => HTTP/1.0
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /genreall/12/releasedesc/930
    [SCRIPT_NAME] => /genreall.php
    [PATH_INFO] => /12/releasedesc/930
    [PATH_TRANSLATED] => /home/lovereading/www.lovereading4kids.co.uk/www/12/releasedesc/930
    [PHP_SELF] => /genreall.php/12/releasedesc/930
    [REQUEST_TIME_FLOAT] => 1435986079.176
    [REQUEST_TIME] => 1435986079
)

Trace:


Step 0 => 
        (
            [file] => classes/book.class.php
            [function] => query_2_array - line 586
            [class] => DB
            [args] => 
                (
                    [0] => SELECT 	KIDS_Book.*, KIDS_Author.*, BookIndex.pub_date
								FROM KIDS_Book LEFT OUTER JOIN KIDS_Author ON KIDS_Author.AuthorID = KIDS_Book.AuthorID
								LEFT JOIN BookIndex ON KIDS_Book.ISBN13 = BookIndex.isbn13
								WHERE (PrimaryGenre="12" OR SecondaryGenre LIKE "%#12#%") AND KIDS_Book.Enabled=1 ORDER BY PubDate DESC LIMIT $offset, 30
                )

        )

Step 1 => 
        (
            [file] => logic/genreall.logic.php
            [function] => getthismonthsbooks - line 89
            [class] => book
            [args] => 
                (
                    [0] => 12
                    [1] => 
                    [2] => PubDate DESC
                    [3] => 27870
                )

        )

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

            [function] => include - line 9
        )



Lovereading4kids UK - Reviews and Recommendations. Buy Books and eBooks, Read free Opening Extracts

Featured Books for 11+ readers Featured Books for 11+ readers

All authors and books in this category
Show this month's Featured Books for 11+ readers Books
Show Author List

Page 78 pages in total
Page 78 pages in total
  
Add to favourites

The reading world now lies wide open.

Individual choices of genre become more significant as readers become more discriminating. Readers develop their critical faculties as they weave their way towards the kind of readers they are growing into.

You could also check out our latest highlights such as 'new voices', which showcases some of the brightest new talent from Walker Books, or our 'prizewinners' section where we can help you and your child discover authors currently in contention for and/or winners of the most prestigious awards.