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 (3883,44867,18185,44848,45042,44689,18430,18286,18900,45421,5259,30986,18237,17756,17527,45051,5388,45346,8753,24412,24441,17492,4686,19057,31354,18794,10402,17237,44853,18572,44674,44687,17839,44855,18652,18301,45180,45516,45517,24438,17981,5993,16935,14622,44873,28313,44868,44671,14402,44858,44894,45177,17556,32454,18650,18042,37057,44845,17335,44768,45229,45518,17904,44775,18279,18894,45561,44861,44711,45072)
Unknown column 'np.person' in 'where clause'