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 (44849,17556,18981,45262,44689,44865,28313,17351,17009,44861,18042,18719,44835,17981,44875,6875,44687,18301,18185,5410,17237,17848,45180,10402,6862,43800,6609,37057,45229,44669,24411,45421,18648,18427,17771,45072,45043,24441,17657,17492,16935,13922,44739,24412,19057,44764,44873,17114,13988,44765,44767,45042,45567,8753,45515,44762,44869,14402,44685,45561,44775,17278,34194,30986,44867,13,28530,45346,44853,17835)
Unknown column 'np.person' in 'where clause'