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 (18427,24438,44745,9341,44835,45042,18688,43800,17839,34194,44873,19057,45567,18650,18794,17092,44851,24412,24411,44674,44739,30986,17556,16885,6875,44766,45277,44836,17278,18172,36472,45286,44866,17657,18042,17771,45346,17848,18648,44875,17755,44775,44845,45518,13922,18446,5259,17756,45516,18719,44878,44689,13988,44711,18652,18900,18185,30135,37267,22509,8753,44767,45177,6609,6782,45262,45421,44764,44531,44687)
Unknown column 'np.person' in 'where clause'