Error 500

DnutFW\Exception\SystemException ("SQLSTATE[42000]: Syntax error or access violation: 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 '-20' at line 1")

DnutFW\Common\DB::query( select mp.* , ms.name as staff_name , ms.icon as staff_icon , ms.url as staff_url , ms.instagram as staff_instagram , ms.facebook as staff_facebook , ms.facebook as staff_facebook , mu.url as page_url from m_post as mp left join m_staff as ms on mp.staff_id = ms.staff_id left join m_url as mu on mp.page_id = mu.url_id where (mp.tag like '%'||?||'%') and mp.post_type = ? and mp.invalid = 0 and mp.publish_start <= current_timestamp and mp.publish_end >= current_timestamp order by mp.pickup desc,mp.publish_start desc,mp.publish_end asc,mp.invalid asc,mp.post_id desc limit 10 offset -20, Array)


/home/chillhair/chill-hair.com/public_html/__website/apps/Model/MPost.class.php(250)

Model\MPost::searchActive(-1, 10)


/home/chillhair/chill-hair.com/public_html/__website/view/cms/logic/1022.php(36)

::require(/home/chillhair/chill-hair.com/public_html/__website/view/cms/logic/1022.php)


/home/chillhair/chill-hair.com/public_html/__website/apps/Website/Resource.class.php(121)

Website\Resource::route(/blog/list.html)


/home/chillhair/chill-hair.com/public_html/__website/libs/DnutFW/dnut.php(84)

Dnut::boot(website, Website\Resource@route, blog/list.html)


/home/chillhair/chill-hair.com/public_html/__website/libs/DnutFW/dnut.php(187)

Dnut::call(/blog/list.html)


/home/chillhair/chill-hair.com/public_html/__website/libs/DnutFW/dnut.php(209)

Dnut::callByUrl()


/home/chillhair/chill-hair.com/public_html/index.php(13)