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 (44865,28530,17335,30135,13,17904,17839,24412,3883,4765,45042,13425,45177,24438,32454,44854,18794,17351,44848,18237,44845,45561,18719,18286,44851,44867,17835,44768,5259,36472,44875,44873,44866,44739,6609,3,43800,45518,34194,17601,18446,30963,19057,44868,45517,18688,44878,45421,45051,8753,44640,18652,30986,14622,17848,18894,18185,45180,31354,18900,16885,18279,17556,45043,45277,44687,39676,24441,17771,17981)
Unknown column 'np.person' in 'where clause'