Как разместить рекламу на Зооклубе

My ads

query error! No rows affected
       b.id, b.objectID, b._1, b._2, b._3, b._4, b._5, b._6, b._7, b._8, b._9, b._10, b._11, b._12, b._13, b._14, b._15, b._16, b._17, b._18, b._19, b._20, b._21, b._22, b._23, b._24, b._25, b._26, b._27, b._28,b._29,
       p._1 as poroda, p._33 as porodaurl, r._1 as rubrik_ru, r._2 as rubrik_en, c._1 as country_ru, c._2 as  country_en, DATE_FORMAT(b._18, '%d.%m.%Y') as datestart
       ,'_group_add_37' as rt
      `_group_add_37` b, `_group_add_17` p, `_group_add_40` r, _group_add_16 c
       b.objectID=2593 and b._3=p.id  and b._4=r.id and b._12=c.id and b._5=
       order by  b._20 desc,  b._18 desc

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 'order by b._20 desc, b._18 desc' at line 9