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 (44869,44873,44837,45561,44685,24441,10402,18650,45180,44848,34194,24438,17981,4765,18446,18719,3883,17835,17278,45567,44689,44764,44739,45286,44863,9341,6609,24412,44854,45518,44884,44853,44866,45229,44855,18301,45421,18427,44836,17237,6782,3,17703,13988,45177,44861,18353,19057,31354,5259,19078,18996,17009,28530,44766,44669,8753,17771,18172,43800,14622,5410,17492,4686,24411,18894,6862,17114,45516,44867)
Unknown column 'np.person' in 'where clause'