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 (44878,17492,37267,44669,24411,44849,44867,14622,45561,18794,43800,34194,45262,6875,32454,45277,18042,28530,18185,16885,18446,19057,39676,18648,44766,44858,45180,44851,45346,18237,5259,36472,19078,44869,45051,6782,45517,44640,37057,18650,18172,30135,6609,13425,44671,18900,44765,13922,44894,17839,18286,4765,44854,17657,44853,45072,44856,17904,45421,4686,13988,3883,44845,18572,45567,17848,16935,44868,18353,28313)
Unknown column 'np.person' in 'where clause'