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 (18652,45229,45421,44878,13922,9341,39676,13988,44768,37057,13425,44855,44851,17755,45262,6782,24438,44845,44856,44884,30986,18042,44894,18981,6875,44687,17981,8753,18446,45561,17848,44870,14622,45346,24411,44865,22509,3883,44836,18185,44848,18719,18286,5410,45515,18894,4686,44689,45277,45286,44835,44531,44837,45051,45043,17335,16935,18650,44674,17839,3,18688,45177,18301,43800,44640,13,45516,18172,44875)
Unknown column 'np.person' in 'where clause'