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 (45286,18900,18794,44861,44775,43800,44762,44854,18446,44674,44845,44835,18042,17335,44765,44875,45229,18981,45567,44687,34194,30963,44739,24438,44865,4686,5259,18286,18427,18652,39676,45277,45346,44849,44767,44689,4765,44640,44863,44884,18185,17839,44855,24412,45517,37267,3883,44851,18353,17351,18688,44869,18996,17756,19057,18279,17981,17114,5388,13922,17657,44671,44531,45180,30986,16885,6782,44836,44768,18719)
Unknown column 'np.person' in 'where clause'