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 (18286,44762,44837,18042,44671,44640,18185,28530,44866,18279,13922,6875,37267,18430,32454,45286,18894,45177,30135,44669,17335,44745,18688,17904,45277,24441,17756,44851,17839,18572,44894,24411,44875,5388,18719,10402,5410,44856,17601,45518,44711,44766,28313,43800,18900,45421,17351,17527,8753,45043,13425,16935,9341,19057,45517,44867,17657,44869,17703,45516,17981,17835,44835,18648,5993,44848,45180,17755,45262,44865)
Unknown column 'np.person' in 'where clause'