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 (18353,45072,6609,44531,28530,45042,44866,44853,45277,44869,18286,17492,22509,44878,44685,16935,18279,4686,24412,44764,45051,18996,44845,9341,45517,18981,44870,5410,44854,37267,17278,17756,45177,6862,18900,28313,5388,44837,44894,17848,13922,18648,44848,45567,39676,17755,24441,4765,44689,45516,34194,44640,44687,45421,8753,44836,18650,17981,44856,18794,13425,18894,18688,45180,19057,18042,45043,17351,44674,44768)
Unknown column 'np.person' in 'where clause'