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 (17755,18652,18286,17237,18430,18719,39676,17848,18794,6875,19078,45180,5388,18353,45277,18981,44689,45042,17492,44766,17835,5410,30986,44851,17092,44856,44669,17756,44853,18237,44640,17601,18279,24411,45229,44894,45516,14402,44836,44711,45072,18446,14622,24441,45515,17556,44865,18301,44863,18894,44866,24412,5993,3883,17771,45561,16885,44858,13,18900,4686,45043,17335,45262,13425,18650,43800,44671,18172,10402)
Unknown column 'np.person' in 'where clause'