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 (13922,18172,45515,44848,44878,17237,17981,18688,44870,4765,18572,16885,17492,44674,44837,43800,44858,44867,44835,44863,18286,36472,18427,45561,44894,6782,45043,13,13988,44875,45180,28313,45517,45518,17771,18237,18185,17351,45042,17009,5259,44845,18981,18648,44866,18996,17848,37267,17527,44775,45229,17556,4686,34194,24412,19057,18894,45051,17703,37057,44711,24411,44768,22509,10402,44861,44531,13425,44865,18652)
Unknown column 'np.person' in 'where clause'