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 (13425,44762,18894,17904,44764,24441,13922,44884,17835,6875,44836,44531,28530,24438,44858,44863,44765,13988,18042,18900,18427,18237,45229,44894,44775,44878,45421,18648,44875,17556,44869,45567,18652,17755,44861,18794,44837,44687,18279,45518,4765,37057,45043,44689,9341,45177,17237,45051,17527,24411,13,18353,44671,19078,18286,17848,45262,45072,17114,5993,45561,31354,18446,36472,30986,44854,44711,3,45517,18430)
Unknown column 'np.person' in 'where clause'