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,44855,45286,44674,13988,18794,17527,6862,13,44878,44875,44837,17601,44884,24411,18427,10402,17756,45229,18237,45043,36472,34194,17351,24441,30986,44870,18042,17556,28313,44739,18648,37267,17492,44854,44767,18279,44764,44836,44848,18572,17335,44689,17657,18981,45042,44861,45262,44765,13425,17237,17839,18286,44853,17092,18430,44531,44868,5259,5993,6609,16935,17755,18688,5388,17278,18353,44867,18996,45277)
Unknown column 'np.person' in 'where clause'