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 (44775,17703,17904,45516,30963,44875,18688,6875,45042,44851,17981,45277,45346,45286,18279,18981,18996,9341,17114,19057,34194,44894,44669,18794,44640,17009,18353,44853,30986,17237,5388,45421,44863,13,28313,36472,18301,44671,17756,6862,43800,44766,24438,45177,18648,18719,45072,44836,44848,17771,3,19078,17335,24441,45561,17657,44868,18237,44685,6609,22509,17835,14622,44767,44867,31354,44739,44762,44764,45051)
Unknown column 'np.person' in 'where clause'