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 (22509,37057,44767,45516,44873,17092,44671,13922,44868,17278,44848,44856,45421,3883,16885,24438,18237,44870,39676,45286,18042,24412,28530,18446,45561,45346,17601,17981,5993,18427,6875,44762,17755,18652,30986,44775,13988,34194,32454,18185,6862,13425,18981,17835,24441,44853,19078,44845,18688,17009,18719,44687,18301,17756,45517,18900,16935,9341,44766,3,18794,4686,44689,13,45567,44739,44640,45518,44861,44855)
Unknown column 'np.person' in 'where clause'