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 (17904,44870,5410,13,44765,17771,5993,4765,18572,44767,18185,18172,44875,44640,44671,44711,39676,24438,34194,14402,44884,13425,44863,45346,19078,45567,18301,45051,19057,18430,22509,37057,32454,45042,45515,45517,44858,8753,24411,18279,17703,18648,44865,17237,44894,3883,18652,45229,24441,28313,4686,43800,44848,18894,17756,17278,44531,13922,18446,44867,17009,44868,44674,44689,44855,30135,6875,45518,14622,17092)
Unknown column 'np.person' in 'where clause'