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 (44671,18172,17904,44836,44858,45262,44884,44851,24438,16935,44861,44711,44685,13425,34194,44873,18042,5388,37267,13922,44867,44875,9341,18688,44764,17835,8753,44855,45177,45042,18237,44768,24412,14402,18301,45072,3,17771,18652,44689,13,4765,17657,13988,45515,22509,44878,24441,44687,45051,16885,44739,44870,44866,44835,18185,30135,44868,30986,28313,44856,17703,17981,5993,17527,18894,45277,45421,30963,18996)
Unknown column 'np.person' in 'where clause'