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 (45043,37057,24411,44868,44863,17755,44765,5388,18172,18981,18794,17114,44685,44870,44762,18719,18688,44739,6862,18572,14402,44849,44853,18430,45286,44867,17771,17092,44669,45561,18286,45277,44856,18301,13922,18427,45180,18894,17601,24412,44855,44671,44775,44861,28530,17981,45072,5993,18652,16935,18648,44894,19057,18900,17335,17492,32454,45518,44711,18650,45516,19078,16885,17237,13425,45229,22509,44865,5259,44837)
Unknown column 'np.person' in 'where clause'