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 (18353,44687,18572,44531,17527,18446,37267,18279,18900,44845,32454,44869,19078,14402,6875,17703,44689,44764,44767,30963,18648,18719,44858,9341,45515,39676,22509,18650,18981,44873,44875,17601,3883,30986,44765,44685,28530,5410,17835,45180,28313,44863,44861,18301,44867,18237,44849,18172,18286,16935,17009,14622,17092,16885,17657,8753,44884,45516,44868,44894,45051,44768,44711,17556,44866,6782,3,45346,17335,31354)
Unknown column 'np.person' in 'where clause'