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 (45177,18794,14402,44685,17839,6782,18446,17351,17335,44854,44711,18286,17771,18042,43800,17278,44669,45180,28530,45286,44894,18900,18427,13922,17527,18572,44835,34194,45518,6875,10402,18237,44531,45051,44856,18279,44739,45567,45277,30135,44865,3883,17009,45262,18185,31354,19078,44875,36472,18894,45346,45043,18430,44687,9341,18719,4765,44764,44745,18353,14622,18648,44870,30986,6862,5993,45561,44863,13988,44836)
Unknown column 'np.person' in 'where clause'