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 (8753,5993,19057,6875,28530,17904,44884,44762,44863,18430,17114,44766,36472,19078,44764,17839,44837,44878,17848,13922,44849,44640,44671,24438,18572,45516,16885,13425,31354,44865,18650,17771,44711,44845,45042,45072,44765,45561,45177,18996,18301,45180,37057,17601,44836,44851,34194,18279,44531,5410,4765,17009,18981,44861,10402,18794,18894,3883,44870,18648,44868,44894,44867,30986,24441,45229,37267,44854,17492,44853)
Unknown column 'np.person' in 'where clause'