(SELECT linker.id as id, linker.pagename as pagename, linker.hits as hits FROM link, page linker, page linkee, nonempty WHERE linkfrom=linker.id AND linkto=linkee.id AND linkee.pagename='MostPopular' AND nonempty.id=linker.id AND linker.pagename NOT IN ('MostPopular') ORDER BY $want.pagename ASC LIMIT 100 OFFSET 200 [nativecode=ERROR: syntax error at or near "BY $" at character 276])

Fatal PhpWiki Error

(SELECT linker.id as id, linker.pagename as pagename, linker.hits as hits FROM link, page linker, page linkee, nonempty WHERE linkfrom=linker.id AND linkto=linkee.id AND linkee.pagename='MostPopular' AND nonempty.id=linker.id AND linker.pagename NOT IN ('MostPopular') ORDER BY $want.pagename ASC LIMIT 100 OFFSET 200 [nativecode=ERROR: syntax error at or near "BY $" at character 276])