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 (5993,44739,30963,44873,18794,24411,17092,44669,18301,44640,17114,18430,28530,17009,44849,45286,17335,6609,45229,6862,36472,45516,31354,17981,30986,44884,18279,45177,17657,44845,44674,16935,43800,44687,17835,45277,44867,44863,44858,18648,45346,13922,44836,44853,24438,17237,18427,44848,9341,39676,4686,45180,18286,17492,18185,45517,45042,14622,14402,44835,44869,37267,44868,44765,17755,44764,44689,18446,18981,45515)
Unknown column 'np.person' in 'where clause'