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 (44765,44865,44669,17839,18185,45262,5410,17755,18430,28530,17114,44866,18237,44853,44671,44868,44835,4765,6609,44640,17657,18446,18996,43800,18353,45567,24438,30986,24411,44685,44873,19078,17981,32454,45516,17492,18286,44861,18981,44851,45229,45043,18900,8753,30135,18894,17278,18042,16935,45042,44884,44768,16885,5388,44689,17009,24412,18688,44711,13922,45072,6862,44531,44878,18279,44869,44687,39676,10402,45051)
Unknown column 'np.person' in 'where clause'