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 (17114,17237,30963,17556,17009,44767,44768,18652,44739,44766,18286,44765,17527,17848,37267,13425,18648,45286,45515,16885,16935,30986,18446,17351,45043,44711,32454,44531,14622,44762,3,45229,17839,18427,17703,17092,30135,18688,36472,5388,44865,44671,18172,44866,17771,28530,9341,18650,18981,44878,8753,44687,44863,18237,44689,45277,44775,44884,44849,18900,17492,18185,18894,43800,45042,44856,4686,45518,45421,44870)
Unknown column 'np.person' in 'where clause'