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 (34194,44865,43800,44762,5993,6609,16885,44669,6782,45346,45042,31354,5259,17527,44671,44687,44854,45517,18981,45516,44861,17009,18900,17092,18185,44866,18286,44766,16935,18650,18237,44845,5388,18427,17835,32454,37057,18279,24411,17756,17351,44745,44869,45043,17278,18042,37267,17492,44878,17237,36472,44765,39676,18794,44685,30135,44849,45262,17839,18572,10402,45561,18996,18648,22509,13922,18172,19078,44640,44884)
Unknown column 'np.person' in 'where clause'