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,13988,44866,30963,44745,44856,44836,44875,44640,17657,18185,31354,45177,3,44845,45262,44863,44669,18652,44768,37057,8753,45515,45229,43800,44867,17351,36472,5259,28530,5388,19078,17904,18446,45346,45567,30135,17009,44775,44870,17278,18794,45516,45421,44869,17601,44767,5993,44884,44848,17092,45286,17335,18648,45072,17839,14622,18981,17756,18353,44762,45277,18572,17835,45518,44851,5410,44687,44671,45561)
Unknown column 'np.person' in 'where clause'