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 (45517,5388,44835,44739,44745,44865,44869,18430,44861,17835,44870,17657,18652,31354,45051,44884,24438,28313,18042,30135,44689,45180,44848,17527,19057,44674,17556,18286,8753,17278,44845,45262,24412,34194,18185,5259,44858,6782,44671,18172,16885,17981,18894,6609,4686,17703,44866,44687,4765,17492,17335,44849,44765,18353,30963,3,44836,5993,18237,16935,18688,17237,44868,13,44894,17904,44875,17351,19078,44531)
Unknown column 'np.person' in 'where clause'