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 (13425,24441,44853,45515,36472,4765,17657,17981,17335,30963,17839,18652,18301,17351,44685,45229,44849,17092,18688,10402,44873,30986,44869,44711,6782,18185,45517,44762,45567,13,45072,17755,18427,43800,44836,44775,17601,45346,3,5993,44868,44856,45180,24411,5410,17756,44687,17703,6862,37057,5259,18446,17771,44855,22509,44674,18286,44531,17527,18353,30135,17835,44861,44851,44671,17848,14622,44764,14402,18279)
Unknown column 'np.person' in 'where clause'