select * from partners where visibilyty='Yes' and ∂ition_id=5_name<>'' and ∂ition_id=5_logo_src<>'' order by subid

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 ' Р†РІвЂљВ¬РІР‚С™it' at line 1