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 (34194,18237,14402,13922,36472,24438,18719,45051,17981,44531,44855,24411,44884,44687,18279,44745,45177,5388,44689,32454,44869,13425,44861,17904,19078,45567,13988,44767,37267,24412,6862,18286,44768,16885,30986,18172,44739,44640,44875,17527,43800,44854,17755,44669,44858,13,18572,45277,17351,44762,3883,45516,45286,18648,18427,18652,17756,18185,45072,5410,24441,17556,44775,44853,44856,17335,28530,18650,18042,44835)
Unknown column 'np.person' in 'where clause'