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 (6875,14402,8753,44867,45567,17351,45346,6862,14622,44878,18650,24441,44531,6782,19078,28313,28530,44768,18981,18430,30135,18301,18652,44835,9341,44869,18042,18237,24411,22509,5259,17556,45042,45286,36472,18996,44851,44640,18353,30986,45262,45421,17839,4765,18688,44711,44762,18446,31354,13425,13988,17835,44685,45277,45229,39676,3,44669,17756,37267,24438,17092,44868,17657,4686,44837,18648,44855,19057,45051)
Unknown column 'np.person' in 'where clause'