A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') tmp where t.page_id = @pv' at line 1

select t.title, t.seo, t.page_id, @pv := t.parent_id col3 from (select * from pages order by page_id desc) t join (select @pv := ) tmp where t.page_id = @pv

Filename: /mnt/stor12-wc1-ord1/896916/937598/www.sparetimeentertainment.com/web/content/libraries/Page.php

Line Number: 39