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 (3,44873,44870,44640,5259,19057,44848,18430,18650,44835,18572,44767,17657,18794,44689,17601,17237,44837,18301,45042,44861,45051,14622,13988,18719,44851,45262,17904,18427,44762,6782,17835,45277,44775,9341,16935,44669,30986,45421,45177,44865,44894,43800,45518,18652,44866,17848,44863,18900,6875,44671,44531,28530,44867,18688,4686,17351,17114,13425,17556,44869,34194,44884,17839,18648,44674,5388,44764,14402,45043)
Unknown column 'np.person' in 'where clause'