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 (44845,44866,17755,24412,17703,13,44870,44865,9341,44689,18900,6609,17556,44768,19078,44884,4686,44894,45561,24441,3,5388,44739,45072,18172,18794,45567,16935,17278,45042,44711,45515,44837,44685,17981,17771,30986,18894,45517,44878,18301,45421,44853,4765,6875,17835,24438,44766,30963,44861,44858,10402,39676,13922,17527,17092,44869,17335,18446,28530,37267,44863,28313,17601,44762,13988,6782,14402,22509,44764)
Unknown column 'np.person' in 'where clause'