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 (44640,44689,44835,30963,13988,5388,3,18279,4765,24412,18652,44669,45180,18794,44856,17335,44854,18572,13922,44875,18981,5993,6609,17755,44868,34194,19078,37057,17981,45177,17278,24441,13,13425,8753,17839,44858,36472,5259,44762,18042,18719,18430,18894,44855,44863,17556,44878,44867,17756,44531,18446,18185,45051,37267,18172,44674,6862,17703,14622,44853,19057,44671,44845,18353,45286,45517,18301,28530,44849)
Unknown column 'np.person' in 'where clause'