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 (44775,44687,17492,43800,22509,44745,18894,28313,37057,45072,44685,18719,17904,14622,45043,6875,18042,45516,17755,13425,17556,17839,45277,13,37267,18427,45421,17601,45180,44849,10402,16935,17114,44768,44640,45177,44766,18353,16885,18172,45346,31354,44689,44848,17237,44836,44894,44868,34194,17092,44671,45042,39676,6862,44835,44764,18446,19078,44861,30986,17835,17981,18650,44669,45515,28530,9341,17756,45051,44531)
Unknown column 'np.person' in 'where clause'