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 (17114,8753,24412,39676,37057,45567,17848,44671,45072,44845,18981,44863,17839,45346,28313,44869,18237,13,17556,44836,44870,5993,30135,44775,44858,44687,44873,17771,18688,44674,44768,44640,45262,14622,44669,9341,18185,45042,44866,44855,44867,18042,31354,3883,44861,6609,18353,44765,17351,18719,44745,6875,17527,45421,10402,17335,18648,14402,44865,44875,24441,45180,44848,45516,22509,37267,45229,45177,45051,18301)
Unknown column 'np.person' in 'where clause'