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 (44851,45043,18301,17601,17703,44685,4765,17335,44768,34194,44849,45229,44863,44861,6875,18688,45517,19078,45262,18981,44775,9341,24411,44765,17556,44854,17839,18279,44762,37057,44865,3883,18353,45346,17237,45042,19057,30963,45180,10402,17009,44671,31354,17114,44848,5410,44764,24412,18286,18652,22509,43800,44745,45421,18648,44739,44870,45516,44531,44866,18042,28313,44875,17492,6782,18427,44689,45177,17278,44767)
Unknown column 'np.person' in 'where clause'