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 (14402,17756,44869,17527,17009,44873,44531,45346,5410,30135,17657,44868,18172,34194,18648,45518,37057,17904,44689,17848,45177,44848,18353,6609,45051,24412,5259,18900,5993,39676,13988,17601,3883,18894,44856,44866,17771,44854,18042,17335,9341,17755,45277,13,44674,44765,28313,14622,44855,45517,43800,44884,17351,44764,44875,17703,44865,44836,19078,44775,18430,18688,44685,16885,37267,24411,45516,18572,45421,18652)
Unknown column 'np.person' in 'where clause'