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,44762,45229,19078,45051,44863,30986,44767,44766,44640,13922,8753,37057,44853,18237,14402,44856,17351,44764,18794,44849,17092,17839,18688,5388,45286,6782,44866,16935,45262,18430,17237,24411,18301,44711,44845,13,45421,44775,18286,17755,44851,44835,13425,45561,31354,44671,18572,18279,18042,17703,18900,18894,44745,14622,24412,44689,9341,4686,44768,24441,44870,3,44858,44837,13988,44674,17527,6609,19057)
Unknown column 'np.person' in 'where clause'