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 (36472,18353,6875,44884,44687,44870,44851,45518,45277,45177,44762,17981,13,17848,18042,24412,6782,44855,9341,45567,45043,44531,13425,44766,8753,18427,44894,44848,13922,44845,16935,44674,44866,17527,44775,4686,10402,45229,17601,18996,18301,18446,24438,5259,18172,17278,45515,6609,44739,5993,45421,45286,44863,17556,18286,44835,18794,28313,16885,39676,24411,44685,18652,17703,44878,18981,30135,18688,18572,17756)
Unknown column 'np.person' in 'where clause'