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 (28530,45421,44775,44766,45051,44689,18794,6782,30135,13988,14622,44853,45177,3883,16885,44884,18900,17657,44768,5410,16935,44845,39676,44894,44851,44873,44875,44865,18650,45286,44739,5259,17703,6609,17601,17492,18237,5993,17771,45516,19078,44685,44863,17981,17904,4765,30963,44866,44762,18996,13922,32454,44858,18301,44767,45042,36472,22509,3,44687,30986,17848,18430,13425,44848,19057,18652,45277,14402,44868)
Unknown column 'np.person' in 'where clause'