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 (14622,17839,37057,44873,44866,18794,17092,44775,18572,24438,8753,18430,18427,45515,37267,44848,44875,17848,45180,17657,45518,45421,17755,44845,17703,44836,17835,6782,18996,18446,18286,44640,4765,24441,3,13,44766,45051,6862,44711,30986,44687,44855,45042,44674,18650,17009,17904,39676,45516,44764,45072,45177,45346,9341,44884,44861,18719,45229,18185,5388,45567,18279,45561,44865,44765,18688,44531,17771,18042)
Unknown column 'np.person' in 'where clause'