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 (5259,10402,44762,44531,17756,18572,45346,44764,4686,39676,45043,44766,14402,18427,17839,45051,18446,30986,24412,24441,5993,45042,18719,17657,18286,44854,17092,17335,3883,17904,30135,44765,44849,44687,17278,17492,45277,44861,18301,44711,44870,45567,22509,19078,18996,44863,5388,17848,44674,45286,17601,44689,45177,45516,44739,45229,13425,13,17556,45262,34194,6862,44869,44858,17114,32454,44884,44835,31354,45072)
Unknown column 'np.person' in 'where clause'