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 (44674,6862,44837,37057,16935,18301,14622,18172,44865,4686,18652,30135,28313,4765,45421,45072,17756,5259,13988,37267,44868,14402,18237,18427,19078,44853,44762,16885,6782,17839,36472,45286,18572,34194,17114,18648,44671,24441,45277,45516,44856,10402,44870,18894,44894,44878,13922,44669,18042,44685,8753,44851,17835,44861,17703,31354,13425,17601,22509,9341,17527,13,19057,45177,18446,44849,45042,44863,32454,44640)
Unknown column 'np.person' in 'where clause'