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 (14402,44845,17009,37057,9341,44863,18900,44689,17835,18794,44894,17335,44764,5993,17657,44775,44835,44866,14622,6782,44873,44767,44762,13922,44858,45421,44855,45515,44836,18353,17904,18996,18650,17492,45346,17237,6609,18279,3883,17601,17556,43800,18042,17703,44687,24438,18572,18427,36472,8753,44640,17981,18688,44745,44669,32454,44867,44853,45180,6875,17771,6862,45072,18185,13988,5259,44854,44768,45277,17756)
Unknown column 'np.person' in 'where clause'