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 (10402,44848,28530,18427,39676,45421,44764,34194,43800,30963,45042,45277,18648,44854,18237,44689,44711,44861,24438,18794,44531,44766,45567,18900,44836,44866,17657,6875,3,13988,4765,22509,45229,44849,19078,17556,37267,44765,45516,45177,17839,9341,13,8753,17904,4686,44762,14402,18650,5259,14622,18981,36472,44853,44878,44739,44845,17835,16935,24441,24411,6862,44894,17237,44768,17771,44873,44687,18430,5410)
Unknown column 'np.person' in 'where clause'