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 (18172,18650,5388,13,36472,16935,3,44863,44685,44762,45346,17755,44837,44848,44878,24438,44869,17839,17771,18652,6609,18648,18185,13988,39676,44873,44739,30986,17351,43800,37057,13922,44858,18572,17556,3883,14402,44674,44531,10402,37267,44640,45043,45515,18301,44768,45516,44764,44835,45229,31354,24441,44884,44849,18286,45180,17904,45042,17981,44854,19078,8753,44861,17492,18353,16885,18237,44867,44868,17009)
Unknown column 'np.person' in 'where clause'