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 (44674,3883,17981,18279,44669,44745,30986,44849,44685,18286,45567,44711,44640,44764,14402,44868,44873,37267,36472,45517,18650,22509,44851,45277,18900,45043,34194,45262,18894,44861,18794,24412,16935,44775,44848,44671,44687,17492,9341,17351,13922,6609,37057,18301,18185,17835,17848,18719,30135,18996,44870,44762,5388,18172,44858,24441,18981,45229,13988,44865,28313,45072,44875,18430,45518,13425,44765,17527,44845,18042)
Unknown column 'np.person' in 'where clause'