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 (45043,44764,45042,44878,4686,16935,18185,6862,17335,17657,13988,44640,17527,18286,45567,30963,45517,44687,45180,44685,44669,45262,18650,13,10402,37267,44531,18894,17981,44884,17092,45561,44863,45072,43800,44855,44869,17351,44848,44689,18981,44768,44765,3883,44875,44745,44866,18042,24411,17114,24412,14622,14402,24441,18996,45277,44836,19057,17835,44894,18794,44856,44854,6609,39676,4765,18279,5410,17278,45516)
Unknown column 'np.person' in 'where clause'