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 (45051,22509,45180,45561,44762,5259,18652,44671,45517,18981,17278,18286,44861,8753,18572,44884,13988,18353,18446,10402,44854,44687,19057,18719,17904,44764,44869,18996,45286,34194,18427,18430,18900,24411,17009,44766,18172,30135,37057,44863,44865,44868,13,45277,18894,18237,36472,45567,14622,44674,17703,13425,17351,44685,6862,18650,32454,5388,31354,18301,17839,4765,44878,39676,44767,44848,17981,17848,44836,17835)
Unknown column 'np.person' in 'where clause'