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 (17237,13988,39676,44861,44884,30986,17527,44689,44687,13425,44865,44711,22509,17756,5410,14622,37057,44868,24438,45561,18650,44870,44866,18172,45516,13,44854,4765,13922,18427,45346,45567,6875,44685,44873,17092,32454,6782,19078,18042,17755,18353,44878,18185,28530,18900,44765,44867,44853,4686,44875,18286,17848,44768,45518,17114,17351,44836,18688,17009,43800,44835,16885,17556,17771,45515,45042,44739,24411,10402)
Unknown column 'np.person' in 'where clause'