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,44836,19057,34194,45286,6609,18353,44765,18172,45180,45421,17092,44531,30963,31354,18894,44873,18794,45517,17556,10402,17755,17009,44854,17492,8753,13,6862,3,44674,45346,17601,44894,45516,17904,17756,44845,44865,44851,24412,18446,6875,18650,24411,16885,44869,24441,18981,5259,30986,28530,44870,45561,24438,17703,3883,17657,44868,19078,17839,17981,18301,14622,28313,44671,45277,4765,45177,18185,9341)
Unknown column 'np.person' in 'where clause'