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 (28530,44878,45518,44669,44766,13425,17009,44768,17835,45072,44851,17601,37267,44671,44836,8753,44875,17335,44861,34194,5993,44866,22509,45229,45286,44745,19078,44848,44845,5388,17756,3883,6782,4765,17904,32454,17492,37057,44865,17703,6875,9341,18172,18286,18427,18894,39676,45262,45043,44762,18652,44775,44853,17981,17755,44711,30986,45567,24411,18353,44854,18572,18446,44767,17839,45177,44640,18650,17848,3)
Unknown column 'np.person' in 'where clause'