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 (17278,45042,44853,44869,45518,13922,5993,44858,17601,44765,17839,44873,18894,30135,8753,18286,44764,44711,3883,13988,6862,45072,45277,45286,17703,10402,17981,44863,45517,17835,44739,24412,44884,18688,17009,18981,6782,45516,44640,18279,18900,18427,5259,44671,44848,3,18446,17657,19078,44851,19057,24411,44865,44854,37267,44845,44531,18042,44894,44878,18794,44868,44855,17351,44856,44775,44835,34194,44866,17904)
Unknown column 'np.person' in 'where clause'