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 (5388,44835,24411,44837,44875,45051,44674,13922,44870,45518,45180,44767,16935,9341,44671,22509,44858,45262,18353,17771,6609,18894,17756,44669,6782,17981,44531,17009,18650,44873,18430,34194,6862,44766,32454,18446,44869,44689,17657,17835,28313,30986,17703,44685,14622,18648,17755,37267,17492,45561,17092,45042,17335,44868,19057,18900,44775,44866,17839,44856,45516,18996,44836,45043,5993,13425,44863,18185,18427,17351)
Unknown column 'np.person' in 'where clause'