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 (5259,44745,44884,17278,18648,44869,18301,44875,44671,45516,17771,44851,4686,18650,45180,28313,17981,18572,17556,18719,28530,45518,44861,18688,45051,17904,3883,45262,44711,18286,17601,13,45421,3,37267,18353,30135,44674,44689,22509,13425,44868,45177,13922,17839,18900,17755,31354,4765,14622,5993,44764,44878,17756,44865,44837,5388,17848,8753,18279,17092,17835,17335,44762,44870,18237,18652,37057,44849,17351)
Unknown column 'np.person' in 'where clause'