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 (17527,30986,44851,6875,16935,3883,45516,45229,44863,24411,45567,44762,5993,28530,13425,18794,18279,37057,44837,17556,45421,31354,18688,44867,4686,13922,44849,44845,13988,13,17755,45051,17278,17657,17492,44878,24441,44870,17092,18427,6782,44775,44674,17756,4765,45561,18572,18996,18650,9341,5388,45177,34194,17335,44865,24438,18719,18652,44856,16885,17839,44866,44875,18172,44765,19078,44868,18900,44687,19057)
Unknown column 'np.person' in 'where clause'