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 (44764,44868,18185,5993,18427,44762,44739,44671,45277,18688,44669,44836,45072,36472,44531,5259,44866,14622,30135,45042,17657,44775,8753,17335,17904,13425,39676,9341,24412,44869,28313,45177,45180,16935,37057,13922,44861,44687,44875,44711,44867,5410,17278,45229,18042,19078,17009,30963,6875,44856,44689,44767,17601,6782,44848,32454,44766,44863,17848,18446,18301,18900,18648,18353,4686,4765,13988,44865,44768,37267)
Unknown column 'np.person' in 'where clause'