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 (17835,45042,18648,36472,44687,17492,45567,44873,39676,37267,18185,17237,24441,44853,5259,30135,5993,18900,44739,44531,44884,44685,13922,9341,17771,44762,17527,45561,44845,18894,8753,17755,44674,45262,17335,45516,6609,44835,24412,18981,44671,44851,44894,44861,44764,44689,24438,44745,44848,44869,19078,19057,17703,17114,45051,44836,18572,44865,45177,13,18688,44856,3883,45346,44866,18996,18237,44858,17009,45277)
Unknown column 'np.person' in 'where clause'