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 (45177,44669,44739,4765,17756,17771,18042,45561,8753,14402,10402,18900,34194,17114,44764,16885,44531,44674,44851,44762,44767,22509,4686,17527,13425,44835,44765,44865,44868,44685,17351,44768,6609,6875,18353,18185,45517,44854,44848,31354,30963,45043,30135,18794,5410,6862,13922,9341,3,44640,17657,44869,44861,17703,17335,45051,45421,45346,45567,18652,19078,44836,44858,30986,13,17556,44711,17601,44856,39676)
Unknown column 'np.person' in 'where clause'