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 (18237,44762,44865,6862,18650,5993,6782,44867,13425,44674,5259,17601,44884,45561,17527,13988,17835,44685,17904,44836,44745,44640,19057,5388,28313,45517,44875,6609,30135,17756,24412,18185,17703,18042,44866,37057,44870,44768,14622,18353,34194,22509,14402,17351,32454,10402,18172,45277,18427,17237,17755,18652,17657,44848,45177,45421,18286,44856,30986,45518,44894,8753,44671,17848,45567,44764,13,28530,17335,6875)
Unknown column 'np.person' in 'where clause'