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 (37267,17335,39676,18719,18427,44868,30963,44671,18794,45262,44640,18042,44764,17835,17278,22509,13,45567,18353,17771,30986,45229,18172,16935,44689,18279,6875,44867,5410,45515,17237,45517,44669,17848,17839,44863,45518,44766,45051,17601,18301,5993,18688,45561,36472,44768,44687,44767,44851,4686,44837,9341,44853,18996,17092,44711,6782,44739,13922,37057,30135,44884,18648,18900,44861,44835,43800,17703,44762,45043)
Unknown column 'np.person' in 'where clause'