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 (45042,18688,45517,44869,44711,17839,44858,31354,16885,17335,18172,45262,18427,44884,45051,44853,45177,13425,8753,45346,44855,18652,45180,44868,39676,45516,44687,30986,18446,30963,44848,19057,44870,44767,13,44851,44837,17601,45277,44836,13922,17527,44873,24412,18286,44531,5410,18900,17771,14622,17556,24411,18185,14402,44894,17755,6609,17114,17848,43800,18353,18042,18894,24441,44863,32454,13988,44875,17351,18981)
Unknown column 'np.person' in 'where clause'