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 (44531,44767,44849,44884,24441,3883,45051,18446,45561,17556,6875,45421,17839,44863,44689,45286,44894,28530,19078,5259,14402,44775,28313,17657,17009,22509,44739,39676,8753,16885,13,45229,18900,45262,18185,44845,18648,17981,44765,17278,17351,24411,5993,4765,18286,17771,45346,44868,17756,44870,44766,32454,45518,18719,17835,44866,44835,24412,17492,18572,44875,44873,44768,5410,18427,44878,5388,31354,18650,17601)
Unknown column 'np.person' in 'where clause'