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 (18042,44835,17756,5993,44845,19078,13,17278,44836,44739,18301,16935,18172,45517,19057,17755,6862,5388,18981,28313,44865,17527,45072,17351,44685,45180,44851,44687,31354,18688,43800,10402,13922,44837,45516,3883,18894,45277,44868,30986,17835,17839,44866,18650,44640,17092,8753,18427,18279,13425,18237,45561,45421,30135,44762,18794,39676,44861,6782,44764,44669,18900,17703,44873,18446,36472,44711,44766,45043,28530)
Unknown column 'np.person' in 'where clause'