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 (13425,17601,18572,6609,5259,34194,44739,13988,18794,17492,44868,17657,22509,6782,14402,44878,6862,18446,45043,18286,45561,45042,44865,44671,9341,44875,30986,24441,24438,44866,44873,14622,44837,8753,45229,32454,5410,17981,44767,44669,13,37267,17904,45277,30963,18430,44861,44867,44849,17092,28530,18648,24411,44674,44854,45421,24412,44856,17527,17839,18894,18353,17756,18650,44848,45567,45286,44711,17556,3)
Unknown column 'np.person' in 'where clause'