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 (5993,28313,14402,13988,18042,13,19078,17755,17904,17556,18353,45043,45229,44687,17335,18652,44837,44878,10402,18172,17092,17848,13922,30135,37057,44870,45567,45051,3883,44689,17756,18446,44866,44835,31354,17527,13425,18427,44767,17492,44856,45561,18981,18648,14622,18650,30963,18688,18996,44854,18279,17237,44762,18894,9341,17351,44849,45286,6875,17839,45180,44674,18237,17114,45515,44855,34194,44836,45421,17657)
Unknown column 'np.person' in 'where clause'