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 (18688,18794,17756,17904,17848,18900,45277,5388,44878,44689,5259,18185,19057,44867,18981,39676,44866,44868,13988,44767,17351,16885,18237,3883,24411,44837,6862,13425,18286,31354,18427,5410,44739,18446,17601,44870,45043,18042,17981,14402,44858,45517,30135,45180,44855,17755,44863,17556,45518,44869,44745,30963,45262,30986,44835,45567,6782,44775,4686,44865,17527,34194,44762,18652,44848,44531,44674,45346,17492,13922)
Unknown column 'np.person' in 'where clause'