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 (34194,24411,44853,14402,44836,17848,45180,13,30986,19057,13922,44845,18172,17657,44878,19078,3,44870,45177,37267,18648,30135,44867,44531,5993,45072,5259,44687,44767,3883,44861,18900,18650,17527,16885,13425,16935,45421,6862,22509,43800,17904,17835,45518,13988,4686,17981,44854,8753,44669,5410,18688,18185,18572,44711,45515,24441,30963,44863,17237,44849,17756,37057,17839,18794,36472,44671,17335,18981,44869)
Unknown column 'np.person' in 'where clause'