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 (24411,44865,17703,17756,18172,45262,44766,44863,45277,13425,18427,45346,17009,28313,13,18794,44894,45180,44674,28530,44878,3,45051,18286,45517,17904,44868,18237,37057,44869,44762,17335,17835,5388,44711,17351,44669,17771,31354,44845,19078,9341,17755,17556,44671,30135,24412,36472,34194,16935,44861,18652,3883,24438,44875,17492,44856,44640,17527,44836,44849,44853,13988,44858,30986,39676,18446,45421,43800,18301)
Unknown column 'np.person' in 'where clause'