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 (18279,45177,45567,18981,45042,45229,13988,44687,24411,14402,4686,45072,13425,44775,43800,45286,31354,30963,18042,44674,18648,44640,45517,17092,18353,18996,18427,44867,17009,44762,17351,45262,37057,17904,13,44531,17755,17703,17839,44858,44865,44768,45043,36472,18185,18286,18794,18301,44835,18446,44745,10402,45277,9341,44849,45421,44739,18650,6875,18572,17237,44863,22509,13922,44866,17771,44854,8753,44884,24438)
Unknown column 'np.person' in 'where clause'