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 (13922,3883,13425,44894,44836,44869,13988,16935,18237,18172,10402,44849,44858,17904,44835,36472,44711,44851,6782,44531,44689,45277,17092,44867,30963,44640,44767,44863,18446,18894,13,18794,17335,45180,45286,44837,44854,45516,44855,44766,44762,5259,32454,44884,45177,17351,17756,44853,8753,18981,17492,18648,4765,18900,17657,17835,18650,18353,18719,43800,18286,44861,24412,30135,45262,45567,17237,44875,17527,17848)
Unknown column 'np.person' in 'where clause'