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 (17092,18446,6862,10402,17771,45286,17756,17848,18900,44868,28530,44685,45229,34194,44845,45277,13988,22509,17278,17835,13425,18688,44640,45180,18427,45051,6609,17009,17839,45421,17703,32454,44853,4765,44669,17981,44849,37057,14402,3,45042,4686,5259,45072,3883,44689,18430,44775,44687,5993,44711,44855,17237,19078,5410,13922,45567,45346,44867,43800,44869,18237,18650,44766,44878,14622,16885,44739,18981,44851)
Unknown column 'np.person' in 'where clause'