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 (18894,45286,18719,18279,44745,24411,22509,34194,44531,14402,44669,45072,24441,44866,30963,36472,44875,45043,44640,44868,44685,6609,45518,30986,37267,44861,44764,17556,8753,44837,17351,17237,18185,44865,5259,18301,18042,43800,17278,6862,17009,45516,32454,19078,4765,44863,44854,13425,17703,17092,24412,18996,13922,17839,18688,17657,16885,44768,18794,45277,44848,17848,44869,44711,45421,45051,45567,17771,18652,6875)
Unknown column 'np.person' in 'where clause'