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 (44687,17703,24441,32454,18996,13,44669,22509,18286,17839,44837,44835,28530,30963,18185,17601,43800,45567,17351,45177,45042,17556,18688,34194,18446,44858,18572,37057,8753,17904,45286,19078,18650,45051,44873,18237,5993,17755,18353,44870,44685,31354,37267,6875,6609,14622,4765,17756,44764,6862,4686,10402,17009,44711,24412,44853,18981,18427,18648,44745,44767,44868,16935,44875,13425,45516,44845,44851,44863,5388)
Unknown column 'np.person' in 'where clause'