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 (18981,16935,10402,44739,18427,18688,44868,17556,6609,45042,44687,44766,18719,44835,14402,13922,18648,45421,43800,45516,17492,44764,45180,18900,44848,28313,44865,18237,32454,24438,44640,44685,44884,17835,45346,39676,18172,24412,17278,8753,44866,17601,31354,4765,17092,5410,37267,30135,5993,18652,17237,5259,44767,44836,44894,18650,44762,18996,44856,45262,44861,13988,45515,3,44689,36472,6862,17114,45517,5388)
Unknown column 'np.person' in 'where clause'