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 (5388,45515,43800,34194,22509,44868,44837,44854,10402,17601,5410,17335,24438,44867,17278,16885,18652,44851,18794,4686,17527,24412,44875,17237,18446,17835,44689,17657,18353,6609,45286,5259,13922,18172,44873,18427,17703,44766,17848,5993,44835,19078,28313,18719,18279,18430,44848,17492,6782,44685,24411,39676,44870,45516,17009,30135,45518,45421,17756,44858,13425,18042,36472,44863,24441,44884,45051,16935,30986,44878)
Unknown column 'np.person' in 'where clause'