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 (45043,30135,6782,44884,44875,44849,45262,44856,18572,45042,18237,17278,9341,44869,44762,44685,30963,5993,37057,44854,17351,44868,18652,44775,14402,18279,44674,5410,18446,44867,22509,17756,13988,18185,18172,18650,44531,16885,44878,45421,17114,17657,14622,44671,24441,44739,17703,3,45177,37267,17981,45515,5259,44669,17601,44711,13,44640,39676,18286,24411,44768,24438,18794,31354,13922,4686,45229,45277,18353)
Unknown column 'np.person' in 'where clause'