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 (18648,45229,18572,44849,44764,45518,44894,13922,6609,45262,45517,44762,14402,44851,44855,44745,44531,44870,17556,19078,17278,18688,17114,36472,17092,44867,45516,44669,44674,4686,17492,18279,16885,28313,13,44865,44853,6782,18353,18430,18446,24411,28530,17848,44739,5410,17351,39676,44861,18652,17335,17237,18427,18719,13988,17756,16935,44866,18237,30986,24412,3883,17835,44845,45567,44884,17981,45177,17527,44848)
Unknown column 'np.person' in 'where clause'