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 (44835,18353,17114,44711,6609,31354,45072,24411,44861,13922,8753,44867,18996,44848,17351,44764,17981,44762,44765,45042,24438,13988,17756,44845,44878,18900,45518,17492,44669,45043,44640,4765,19057,17839,44851,18286,17601,44739,18427,6782,44853,39676,45286,18042,17703,44836,44884,44868,17556,37057,17527,5259,17278,18650,17335,45515,44766,45229,17904,44870,5993,28530,5410,18430,44671,28313,44858,44869,44745,17755)
Unknown column 'np.person' in 'where clause'