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 (44868,32454,44766,44855,44685,17703,16935,45518,17237,19057,34194,44837,28313,17278,44851,17601,18446,18719,18301,44674,24411,18572,6862,44861,17351,18996,44711,39676,18286,18172,17092,44875,44845,18794,18648,45072,45277,43800,13988,44870,8753,44762,18900,44836,44768,44866,45516,45517,5259,5993,44764,19078,44669,18894,17114,44689,18427,5410,30135,3883,30986,44858,44745,24412,45346,17848,18650,45567,44863,45515)
Unknown column 'np.person' in 'where clause'