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 (6862,22509,18446,17492,45346,44685,45421,45043,44739,45518,45042,45277,18286,44689,6609,9341,5410,17839,44869,18650,44671,45262,34194,44861,19057,18648,18981,44837,44775,5993,44854,17657,44856,44853,18652,17351,44836,44745,24441,19078,37267,18900,45286,5388,30135,44868,3,13425,44878,13922,44855,18185,17092,4686,8753,18894,18572,44863,6782,44835,45051,44531,44766,24412,24411,24438,6875,17835,13988,44669)
Unknown column 'np.person' in 'where clause'