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,18688,17351,45177,45421,19078,39676,17839,28530,18042,18981,44873,17904,45229,30963,44866,13,18172,18650,13425,44775,45180,44836,17009,44739,5993,18719,18900,44856,4686,45517,44884,44531,3,5259,44855,44851,17848,18894,45561,45515,16935,44762,45072,18185,44863,24441,18996,13988,34194,22509,18286,24438,5388,24412,18794,18648,44858,44869,44868,44845,44768,17771,45346,14402,44764,44687,44875,17657,6875)
Unknown column 'np.person' in 'where clause'