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 (34194,44674,45262,44745,18794,44531,36472,45043,45567,19057,24412,44854,43800,44869,44835,6782,44849,37267,17848,44837,18427,44768,18652,5259,44765,44884,44870,44687,45177,13,14402,17009,18648,17839,44640,44856,18301,17335,17556,17835,4765,45515,45518,45229,5993,17092,18430,17278,18042,17771,45561,45286,44711,17601,45421,6862,44867,17756,22509,18446,13988,32454,44868,3883,45180,44671,18572,17755,44669,44855)
Unknown column 'np.person' in 'where clause'