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 (6875,18185,44674,22509,44868,6862,17335,18353,17527,18650,17981,8753,18894,3883,18172,45180,13922,45518,18279,13,18688,18042,3,44669,45229,44837,44878,17601,44640,24441,17755,14622,31354,28530,30963,17756,45072,32454,44858,36472,17092,45051,18237,18286,45042,37267,18648,44836,17351,18719,44762,16885,13988,45517,17904,5259,18301,44854,13425,44849,4686,17835,9341,44884,44869,45262,18794,28313,19057,44894)
Unknown column 'np.person' in 'where clause'