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 (44762,18688,17981,45229,44855,31354,36472,44861,5993,17114,10402,17351,13922,44853,37057,39676,24412,19057,44685,44858,44766,18042,5388,45518,17839,45072,18648,44837,44674,30135,44856,8753,5259,32454,45277,45177,5410,16935,18652,44878,45051,17904,18572,18286,18427,44866,44873,18719,13425,30963,44867,18172,18237,17335,37267,44739,6875,44863,17835,45516,24441,45042,18185,44640,18279,3,43800,17771,9341,45286)
Unknown column 'np.person' in 'where clause'