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,17492,44775,44671,45180,17755,44858,44762,3883,17278,17771,45567,18430,17657,44861,44869,18279,18996,44845,18427,9341,18650,44884,37267,45277,17835,3,44837,18042,45346,6875,45043,44768,44765,44878,18572,31354,18981,4686,44745,44711,24411,18353,44873,13425,5388,17335,24438,17009,4765,18237,18301,18794,17848,18652,24412,18648,17601,44875,5259,17237,17703,44764,18172,44867,44674,17556,44687,45561,44767)
Unknown column 'np.person' in 'where clause'