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 (17009,17981,45177,17335,28530,45561,44848,44836,45516,18650,22509,44845,44849,16885,18279,45515,18286,44863,5259,17755,44865,8753,44711,44745,45517,44884,14402,45229,28313,44870,44671,39676,24441,14622,3,43800,44854,5993,44869,37057,18652,5410,44768,31354,18794,45567,45286,44835,18172,18719,44858,44866,19057,44878,45518,4686,45421,17351,44762,18900,30135,44531,30986,44775,44687,36472,18648,37267,45072,17839)
Unknown column 'np.person' in 'where clause'