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 (44845,30135,45229,5259,17492,18981,44858,44861,16935,17848,44674,17981,45517,18430,44685,44531,32454,18652,44837,18286,17657,17556,44855,44849,8753,17114,44835,18894,44869,4765,44894,44868,44711,34194,18794,44878,6862,5993,44884,44669,18650,18719,18279,17835,44764,36472,45072,45286,18172,19078,3883,44865,45177,6609,44768,18353,24441,17009,4686,44689,31354,45043,45518,44739,18996,44870,44866,5388,13,24412)
Unknown column 'np.person' in 'where clause'