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 (17771,6782,5410,17601,18237,44853,45051,44640,44868,14622,44863,9341,39676,44739,44768,17009,44894,18446,17756,18286,45042,45043,28530,44711,17839,45262,13425,18688,37267,18572,44671,44867,4686,45515,44685,5388,32454,44766,14402,43800,5259,34194,44861,45229,18353,18652,8753,17114,17835,44854,44689,13,16935,18900,44674,24438,5993,17848,18996,17278,17981,44835,31354,44878,44855,24411,17755,44884,24441,30963)
Unknown column 'np.person' in 'where clause'