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 (24441,44849,30963,16935,45516,18894,44766,17839,18172,44875,45277,44856,45043,18353,6782,44836,19057,45518,31354,18794,45072,17492,6875,14622,18185,45229,13425,13,45180,24438,44765,17556,18042,24411,44711,18446,17771,17703,17601,37057,44689,44851,30135,44865,45346,14402,44854,18572,45517,45177,44764,18430,17009,17657,44863,44873,18279,6609,45042,30986,44739,17527,17092,18648,44531,44687,36472,43800,44869,44762)
Unknown column 'np.person' in 'where clause'