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 (17527,44640,30986,28313,17848,45567,17703,5388,18900,45229,4686,44836,24412,17904,18279,45286,44685,18172,44739,13922,22509,44856,44854,3,44884,24411,44869,6609,39676,44835,44687,24438,17009,37267,45072,45516,4765,37057,44765,44894,30135,45042,45561,17492,34194,18794,45277,18650,44873,44866,45515,44768,44849,17756,17755,17335,45051,10402,44674,44762,18996,19057,44851,18652,43800,18237,16935,8753,44764,44671)
Unknown column 'np.person' in 'where clause'