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 (17237,31354,14622,44848,28530,34194,16885,39676,5410,44865,45180,44837,44835,45516,45515,10402,44855,18279,6862,19057,45177,19078,45072,17601,17703,44866,45043,17492,45262,24438,44869,43800,18286,18172,17835,14402,17839,17278,17755,18981,17009,18794,45561,18042,17114,44849,44531,18688,17556,45042,44687,44894,44867,44854,45277,44745,18894,32454,44685,18237,5993,5259,44851,18648,6782,13922,44868,44875,44845,37267)
Unknown column 'np.person' in 'where clause'