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 (17657,17351,18652,17492,44766,44768,28530,4765,44689,16935,18430,44762,18427,44851,44531,18172,31354,44878,36472,44836,18301,34194,44671,17771,3,17114,45567,5388,24412,13,44764,28313,13922,45051,45421,44855,17904,45177,17601,44861,44875,45072,17839,18446,45277,22509,5259,18650,13425,18981,44863,17756,17335,18996,17527,5410,45043,17755,45286,44870,44669,44858,44685,44867,45515,44866,5993,45262,45346,45518)
Unknown column 'np.person' in 'where clause'