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 (45517,17335,5388,45072,37267,44685,24412,28530,44869,45277,13425,18981,44861,6862,43800,17703,45177,44745,30135,44768,18900,18894,17771,34194,30986,45516,44775,45051,16885,17009,44868,17657,39676,5259,45515,45286,45043,45042,44687,44766,44674,17601,14402,18652,17904,44739,18353,4686,44689,6609,17756,17492,44837,31354,17092,44858,44856,44531,17237,18650,10402,44863,44849,44866,44764,44762,44853,44640,17839,18286)
Unknown column 'np.person' in 'where clause'