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 (4686,34194,37057,44848,18301,18427,44669,30963,6862,24441,45277,18430,37267,18185,44858,17492,43800,24438,44689,44884,45516,18353,44875,44863,17092,31354,44685,44711,18286,44764,10402,14622,45262,45518,44739,44845,16935,45042,44873,18794,44836,45177,44878,18900,14402,13988,44853,17114,39676,18648,44851,30135,17601,45346,9341,24412,44671,17556,44767,17839,45229,44762,3,18652,44856,44687,6782,36472,44768,45515)
Unknown column 'np.person' in 'where clause'