Same message, same results. Looks like there's a space missing here:
Code:
l2lc.link_categories_id = '1'order by
Between the '1' and order by. Should read this:
Code:
l2lc.link_categories_id = '1' order by
Correct?

Edit:
Well, I was right, but that didn't completely fix it. Still getting an error on line 1.