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 (44873,17351,45043,44884,18900,24411,14402,6782,18719,44856,44739,18794,44669,18652,17009,44768,44854,44674,30963,17771,44849,44837,44835,44836,18650,37267,18688,44640,17848,17703,45516,44762,17601,19057,44689,18286,19078,18301,13922,44867,17981,39676,44764,44766,17556,30986,18185,17335,13988,17092,44894,5388,45286,24438,17657,17492,28530,45051,16935,5410,24441,18042,44863,44767,44858,17755,6609,18279,44848,45177)
Unknown column 'np.person' in 'where clause'