Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (45286,6609,5993,44858,34194,44878,17904,10402,44768,17237,39676,4765,17755,45043,9341,18446,44687,17848,18688,18648,44868,19057,17092,45229,17335,44856,44873,16885,18172,44866,30963,18650,45421,44739,44835,24411,17351,44767,17492,18042,44689,13922,3883,14402,44640,5259,18794,3,44764,24441,18572,44745,44861,17527,8753,24412,44837,17703,19078,45180,18286,37267,6875,13988,45561,30135,44685,44775,43800,18652)
Unknown column 'np.person' in 'where clause'