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 (45286,44845,45072,44835,10402,44878,44765,44884,44870,18430,17009,45561,44867,28313,17848,45518,6875,17771,44669,4765,16885,30986,44837,44739,44855,44640,44767,18894,44853,44868,17335,36472,18279,17835,17755,17904,44873,18301,6609,18172,44856,37057,17492,18719,44865,17527,18446,17351,44854,45517,22509,18996,44685,45042,18900,44894,45051,44849,9341,45277,44775,19078,44848,44836,34194,18185,14622,45262,37267,17278)
Unknown column 'np.person' in 'where clause'