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 'order by userid desc' at line 1
น่าจะผิดที่ตัวของ order by ครับ
$strSQL = "SELECT * FROM service INNER JOIN bmember ON service.userid = bmember.userid where service.idsev=$res[idsev] order by service.idsev desc";