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 (45277,44674,45180,44835,17335,30963,44861,18446,28313,44762,17092,44856,45518,45072,44867,45177,18719,17009,45051,45229,18353,44669,44849,17527,4765,44855,18301,45516,44640,17703,18572,17848,45042,37267,4686,44767,44837,44689,22509,18650,16885,18427,44854,17981,18652,44739,17755,17492,24441,18279,45346,31354,37057,24411,44863,45286,44531,17114,18237,44884,44853,44870,24438,39676,13988,44766,44764,6875,44858,44845)
Unknown column 'np.person' in 'where clause'