select collection_id, title, russian_title
from rb_stories_to_collections, rb_collections
where
collection_id = coll_id and
story_id= order by rb_collections.year asc
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 rb_collections.year asc' at line 5