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 (18172,44878,3,14622,45517,10402,13988,8753,44848,18279,28530,6609,17981,24411,44855,17237,18446,45518,18900,45051,18353,45561,18286,44671,45262,17904,44867,44689,44863,17703,44766,17114,44856,37057,45180,28313,6875,9341,18572,19057,18996,18430,6862,17839,44768,18652,45516,44869,44858,44870,45286,44875,44853,44745,17092,17755,4686,5993,32454,44854,45072,44866,13425,5388,44775,44640,44739,17835,39676,5259)
Unknown column 'np.person' in 'where clause'