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 (44856,44849,44884,44870,17601,44863,39676,28313,17835,22509,30963,44762,36472,18446,44767,45051,30135,18286,44711,44745,44855,6782,44858,17981,3,44853,13922,31354,18279,18648,18652,6609,18185,44640,44868,13,45561,18900,18894,44768,13988,45177,14622,44848,44836,44739,10402,17278,44669,17756,45346,45262,6875,4686,18572,43800,17335,45567,3883,4765,18688,13425,17904,17771,44674,45042,37267,30986,45229,44531)
Unknown column 'np.person' in 'where clause'