Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (45515,44853,44856,44768,45051,17755,45177,30135,45421,8753,18996,37057,32454,17009,13,24441,44775,28313,44764,18688,5993,18981,44767,44867,44848,18353,45043,24438,18652,17556,45277,44894,45516,44869,18446,17771,16935,44837,18650,45072,44671,17335,34194,44766,5388,44762,17904,14402,44866,17835,17351,44865,44745,18237,45262,45517,4686,18427,3883,18894,44851,44884,44863,6875,13988,3,17092,18719,19057,39676)
Unknown column 'np.person' in 'where clause'