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 (44894,6782,5388,44869,45177,5993,17114,19078,45421,24412,6862,17839,44775,30135,44689,4686,18894,45515,5410,44875,44745,9341,17278,44687,44764,13,45518,37267,44863,44851,18353,14402,13922,6875,45561,30986,44765,44878,44836,18427,45262,13425,44853,17848,44866,10402,16885,14622,45042,18286,44868,44711,34194,44845,17771,44884,24411,17351,44835,18996,44767,44531,18279,18719,17009,44865,17092,30963,18446,8753)
Unknown column 'np.person' in 'where clause'