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 (44848,44836,44866,18427,18353,44671,44855,17771,34194,45042,17492,30963,30135,18237,44685,5259,3883,44873,3,10402,44768,17835,6609,45421,18185,45518,31354,5993,44854,32454,44894,45229,44835,44868,17981,44851,45277,45517,18650,4765,45516,17657,39676,18652,44884,4686,45561,18446,37267,44687,18900,22509,44766,44858,18688,45346,19057,16885,44745,28313,18794,13988,6782,44870,18279,45515,43800,44739,44767,17351)
Unknown column 'np.person' in 'where clause'