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 (18042,45180,45072,14402,17703,44875,18353,44858,18996,24411,3,34194,30135,44767,17556,30986,44711,44869,45286,44531,17351,43800,4686,9341,44878,5388,45262,13922,31354,18237,44866,5410,5993,44835,17839,17755,18427,44689,44868,44640,17981,17756,45346,18286,44687,44836,45421,13,44863,17601,45177,44739,17657,18446,44867,45516,45043,28530,44853,44851,18719,19057,6609,45561,37057,17848,45518,17114,19078,17492)
Unknown column 'np.person' in 'where clause'