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 (5410,44875,13922,18427,6609,13988,45180,6862,28313,45518,17981,5993,18996,45072,44868,31354,44640,17527,18301,5388,45043,44767,18286,16935,44856,45277,45042,17756,44764,18237,28530,14402,17703,44689,18650,18430,44669,30963,44858,18794,6782,18719,17771,44674,17839,44873,44865,9341,24438,18042,10402,17601,44766,24441,13,18688,18572,18353,44775,6875,17009,44849,18652,45262,37267,19057,44531,44855,39676,22509)
Unknown column 'np.person' in 'where clause'