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 (24412,44848,44674,44671,13425,44866,44855,24441,45042,17351,13988,17848,45516,44531,17527,5993,44849,18427,18996,45286,44836,17237,18353,45072,30986,17092,39676,18981,18900,17771,18185,44745,44835,44775,37267,18446,4686,44861,45180,4765,16935,28530,18719,5388,45051,44640,44711,45567,18279,44689,19078,44854,45346,44762,17335,14622,17492,30963,44687,45561,44878,17114,44884,8753,44858,44863,44865,44870,17009,24438)
Unknown column 'np.person' in 'where clause'