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 (44745,17771,30135,31354,5388,36472,45262,18794,18172,18894,44856,18279,4686,44851,45561,44869,5259,17755,44863,45043,44854,6609,17601,44867,44640,6782,45286,17848,13425,44835,18719,18353,18237,44849,14622,13922,45051,44894,45177,16935,44866,44768,5410,44865,45567,3,17335,28313,17839,30986,24438,17351,34194,17556,14402,16885,44775,4765,18572,45277,45517,17092,18301,44689,44873,44861,44765,45180,18042,45515)
Unknown column 'np.person' in 'where clause'