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 (31354,17237,34194,17703,24438,18981,13425,44775,17601,45421,10402,18279,45277,14402,44854,6875,30135,18353,17527,45262,44745,9341,39676,5259,17009,44835,4765,5410,18427,44531,44845,18430,45516,16935,18894,8753,3883,44875,30986,44762,45043,44765,44873,18996,44851,44837,45072,44866,16885,44687,17556,6782,45042,19057,17981,18652,44867,13,13922,17351,17114,24441,18446,6862,44768,18900,32454,44671,5993,18301)
Unknown column 'np.person' in 'where clause'