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 (45517,18894,17527,18286,45262,17556,45516,45177,45515,34194,44884,44671,44837,44768,14622,44685,13,6609,5410,44849,18427,43800,44687,44851,18353,44870,44875,45567,5388,44866,18172,3883,17703,45043,44669,44856,24441,37057,17092,4686,17351,44855,13922,8753,37267,18981,44845,6862,45229,17492,32454,13988,44836,18042,16935,17601,18900,17756,24412,18648,17278,44764,44835,17771,45286,30135,18719,45051,44767,17981)
Unknown column 'np.person' in 'where clause'