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 (17351,6609,17756,5388,18652,24411,45518,44845,44858,18719,44856,18572,17848,18427,44766,44853,17556,31354,17492,18042,18648,18353,44531,44873,17092,45229,18650,44884,5259,16885,44835,44854,4765,45421,45262,17755,44689,45277,44669,45561,44711,44861,19057,30963,18688,13922,44863,39676,17335,45072,44870,44674,18894,18900,17703,3,22509,44836,45180,44685,18794,44851,37057,44764,45042,45515,44687,17237,45516,45567)
Unknown column 'np.person' in 'where clause'