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 (44851,45072,18301,6782,14402,18446,13,18981,45180,8753,43800,45517,18652,44837,18650,44689,44868,44863,31354,17835,17756,17848,16935,44856,44766,45277,17114,32454,4765,17755,39676,44869,44640,30963,13425,17657,30135,18719,10402,6609,44858,24412,44836,44848,17278,18286,24441,13922,45262,44870,45561,44875,37267,17527,5993,44853,17092,17556,44884,30986,19057,44865,18353,18427,44764,18279,44762,44768,17351,6875)
Unknown column 'np.person' in 'where clause'