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 (18237,44878,17756,44685,44835,34194,6862,28313,17835,44865,44868,17839,44858,17601,45561,18286,18688,44875,17114,44863,17527,5388,17771,4686,5410,44531,10402,31354,44711,17904,17703,45072,45518,44687,17237,45229,45567,30963,44854,44848,44849,18185,17556,18279,45516,24438,44762,44873,17848,44851,39676,6782,45043,8753,45262,19078,18996,18572,44689,13425,45421,14622,17278,32454,18652,18648,18353,44766,44870,45286)
Unknown column 'np.person' in 'where clause'