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 (5993,30986,44766,43800,44854,17556,17335,45229,24412,44884,18301,13,44764,45177,45042,18794,14402,17278,34194,17092,18446,45515,10402,45518,17114,18286,18172,17771,17492,19078,9341,44851,18981,44894,37267,44848,17904,6875,44863,44858,17839,5388,45262,44711,44866,22509,45180,44531,17703,44849,44870,18719,44836,44685,44669,6782,3883,18648,44878,44671,17756,24438,18042,45051,44689,19057,18185,44765,3,44835)
Unknown column 'np.person' in 'where clause'