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 (13,31354,4765,5388,17981,45042,36472,44865,28313,18353,44849,45229,18719,18185,44640,17492,44768,18981,44845,13425,44669,45515,16935,13922,44766,45286,24438,44884,22509,45177,45346,17755,44875,18996,17835,24441,45262,28530,44837,3,18572,5993,4686,18648,17092,18446,17278,17904,5410,45518,44848,6782,18286,44836,18237,44685,44689,45051,44856,45277,6609,44764,17335,17771,44863,44855,14622,32454,18652,37057)
Unknown column 'np.person' in 'where clause'