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 (45515,44845,45518,18279,18172,45421,10402,45262,17556,6609,6862,44870,19078,45346,18353,17904,44689,5388,17771,18894,44873,18237,6782,18648,17237,44861,13988,37267,31354,17839,44858,17335,9341,6875,5993,18446,43800,18996,44867,30963,37057,18185,5259,24438,13425,16885,44849,44868,17114,19057,45229,30986,17527,17848,44711,45072,16935,45180,44685,44894,28313,28530,22509,44875,45042,17756,45561,18900,44884,34194)
Unknown column 'np.person' in 'where clause'