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 (45516,45042,17904,45346,17237,5388,45277,9341,17556,44866,44762,18572,16935,44745,44845,8753,6862,17756,44870,13425,44863,44865,5410,30986,18185,19078,18237,44768,18427,13922,44640,6782,44669,43800,44775,44856,44531,24412,19057,44687,44711,18650,14622,44868,4765,17351,44894,45567,5993,6875,37267,17492,45286,30135,45561,17703,45515,32454,44766,5259,45051,10402,18900,44767,18688,44867,18648,18446,17009,45180)
Unknown column 'np.person' in 'where clause'