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 (44685,17278,18172,6862,6609,45517,43800,44870,17114,18430,10402,45262,45177,44865,13922,24441,44765,44863,17351,17848,17009,44764,44873,18042,17771,45516,5993,45561,44845,45286,44766,6782,24412,44671,44878,17657,44853,44711,22509,18301,45518,18794,44531,44837,17237,45051,44687,45421,18648,17904,44867,17703,9341,18446,18981,18996,44894,3883,19078,17556,44861,18279,44739,44854,17335,17527,18286,18237,45043,17839)
Unknown column 'np.person' in 'where clause'