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 (18279,44739,44762,44674,43800,31354,18430,5410,45042,44861,18427,8753,44768,16885,44689,3883,45286,18172,6782,28313,17848,44867,44767,37057,18981,24441,44858,44836,44765,44764,45043,18446,37267,18353,13922,17839,44851,5993,18572,44775,45346,10402,44687,17601,44671,17755,18688,44894,44853,18719,36472,44711,45180,45515,5259,44875,18650,45277,18286,17771,17492,30986,17278,45072,45177,17835,44869,44766,5388,44878)
Unknown column 'np.person' in 'where clause'