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 (44765,6782,44764,18427,44868,18301,44531,44689,45262,19057,31354,18650,18794,10402,17981,5388,37267,24438,17848,16935,45421,18981,43800,8753,13425,44865,45180,45286,13988,17092,44848,18900,44671,44669,44873,44685,44739,30135,45277,17771,18353,18648,17703,36472,44870,44845,4686,18286,37057,5410,18430,45517,14402,44835,44762,45043,18446,44687,44745,44866,17114,6862,17278,45518,17335,24441,18688,13,45346,5259)
Unknown column 'np.person' in 'where clause'