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 (9341,24438,44711,45043,17835,45072,3883,18446,44739,34194,45346,32454,44764,44865,18572,19078,31354,17755,45561,5410,44775,45051,18286,18648,6782,44858,24441,45516,44836,18427,14402,28530,44849,18719,43800,5993,17237,44845,44884,5388,44689,30986,45177,18237,13988,44853,30963,44866,18794,13,19057,17278,17848,6862,45286,44868,45180,44768,10402,13425,17009,44869,17981,44863,44640,4686,18981,44867,18301,14622)
Unknown column 'np.person' in 'where clause'