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 (17237,16885,17657,44836,18446,45561,45286,44775,18981,13425,24412,18286,45042,44711,17703,17835,5388,17527,5259,17904,45421,19078,45567,17756,3883,10402,39676,18900,45177,44884,3,45043,44875,44685,17755,19057,45518,18185,18172,44687,17839,44766,28530,18996,18652,24438,44878,6875,43800,44867,45277,44848,18794,44854,18279,5410,37267,44863,32454,6782,44851,44865,13922,44858,36472,44856,30963,22509,45180,44855)
Unknown column 'np.person' in 'where clause'