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 (10402,44767,24441,5993,17904,45180,44687,44854,45043,44873,44856,22509,44863,44837,39676,18652,45517,28530,44849,44685,44835,45286,45051,17703,44845,44884,44674,4686,36472,24411,32454,17237,17278,45042,18427,6875,45072,44875,18286,37267,17755,19078,17835,30986,16935,18688,5259,18042,44868,13,18719,18572,24412,44851,18648,24438,18237,37057,18900,44531,17114,44855,18279,45515,19057,17848,44711,45518,8753,13988)
Unknown column 'np.person' in 'where clause'