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 (18981,45567,45262,17351,44867,17278,30986,44870,44884,10402,44868,45561,45229,6862,5410,44875,44894,31354,18894,44865,28313,44848,45286,37267,18301,17703,13988,44531,13922,18042,44775,45043,17237,32454,39676,44878,17556,44845,44687,44858,44855,17756,44854,37057,44869,17527,34194,44765,18185,44863,44640,44766,45516,18430,18650,3883,17839,44768,44764,45051,17335,14402,6609,18353,6875,43800,44851,18172,44849,13425)
Unknown column 'np.person' in 'where clause'