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 (13,44837,28530,45072,44884,18279,39676,44878,44762,45286,18353,5993,16935,24441,17755,18237,30986,18185,17335,44739,45180,45567,44866,44766,45229,44865,45515,14622,44687,13425,44674,24411,44858,44851,45561,44835,5410,44861,44869,8753,18794,17278,4765,45516,30135,17009,13922,6862,24412,3,18446,45042,44856,18430,18172,24438,19078,44689,45043,44768,22509,18286,44863,44854,6609,44836,18652,17527,18900,32454)
Unknown column 'np.person' in 'where clause'