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 (36472,44766,37057,18688,5388,44853,28530,18572,24441,44849,44845,17904,44711,17657,45346,44866,17092,18301,44768,17556,13922,17703,45286,44685,44531,30986,45567,44669,18279,44873,44687,6609,44836,17237,45229,18894,30963,45262,14622,13,45515,44875,5410,17839,44854,19078,44894,44884,18237,9341,44869,6862,18981,18652,44739,16885,32454,31354,13425,14402,44867,17527,5993,5259,17114,18794,16935,18719,37267,18430)
Unknown column 'np.person' in 'where clause'