MySQL Query Error

select b.* from user_huodong_relation a left join huodong_main b on a.relatiorId = where a.typeId=0 and a.userId= order by desc limit 0,6
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 desc limit 0,6' at line 1