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 (44853,24411,39676,44765,18572,30963,6875,44674,44848,13922,17335,45346,45277,17092,44858,44531,45517,44687,44854,17756,18650,18446,18301,17839,5410,24441,16885,44865,28313,17278,45051,44845,44878,17703,44766,8753,30986,44866,32454,17904,45561,44884,17981,19057,24438,44870,37057,17492,18042,6609,44711,45567,3,17009,45515,45286,4686,44768,44640,18286,18353,13425,19078,18185,6782,44837,44685,17601,18279,30135)
Unknown column 'np.person' in 'where clause'