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 (44674,45515,44894,18042,44835,6782,18427,44689,44848,5410,44858,8753,28313,17848,18172,24438,13,4765,44764,45421,45346,17009,18353,16935,22509,44775,45517,44837,30986,17278,45072,39676,17335,17657,44531,17755,44867,44870,44765,44854,31354,9341,45051,17527,5388,44849,44855,45229,36472,3883,18648,17492,18286,44863,19078,44869,44875,17835,16885,44884,37057,44851,44861,44687,18794,14402,17092,17756,44768,45042)
Unknown column 'np.person' in 'where clause'