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 (44671,18650,32454,44765,17703,44866,18185,9341,18572,45518,44851,45517,44869,18237,6609,45421,19078,44853,5993,36472,3,44689,44711,6862,45229,45516,44685,14622,45567,44766,45286,45561,44762,18894,34194,44875,16935,17278,17114,44873,44669,13,44863,17351,17657,28530,17335,45346,17755,18688,17771,18279,44855,17492,17527,44854,44764,44775,13922,44531,18996,44836,45262,16885,17601,24441,44856,18900,24438,17835)
Unknown column 'np.person' in 'where clause'