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 (44669,44845,44865,18900,44671,18042,19078,24438,45180,17835,14402,45516,44689,13988,3883,44894,44853,17839,4686,5993,45177,44711,30135,44866,31354,44870,44849,45072,44765,45286,18996,14622,17492,44858,18794,18688,45229,17278,45262,18894,17981,45346,44836,18981,44848,44837,44869,5259,44868,6609,8753,44855,16885,17527,44863,30963,37057,10402,16935,45277,45421,44835,44884,45515,6782,18446,4765,44767,44762,44766)
Unknown column 'np.person' in 'where clause'