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 (4686,44868,24438,18719,44845,44835,37057,45072,17755,5993,14402,14622,13922,44689,17835,6609,18286,17492,39676,13425,44765,30986,18427,44894,24412,5259,44767,17839,45042,18301,28530,45043,16885,44837,44873,45567,44875,10402,18279,44853,45518,45180,17092,45177,6862,28313,44836,17237,19057,44775,18794,44867,43800,44711,17556,18172,34194,17601,17703,18430,13,45051,19078,44745,44849,44858,30135,45277,18353,18900)
Unknown column 'np.person' in 'where clause'