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 (6609,22509,44775,45517,17904,5410,44865,44866,18446,3883,45561,5993,14402,24441,19057,17771,44764,44745,45177,17755,44835,44671,45180,45286,44687,45051,17114,17556,13425,44884,44894,17981,44765,45277,24438,19078,9341,16935,18981,14622,17839,44848,17335,34194,13,18301,17351,18650,44854,45515,16885,44867,18042,6862,45567,45262,17848,45229,18719,17601,44851,28530,45516,30986,44845,44685,17278,17703,17657,44875)
Unknown column 'np.person' in 'where clause'