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 (13922,17771,44671,44875,4686,3883,44767,45177,30986,17703,37057,19057,44873,13425,34194,44745,44867,18688,44848,45515,44865,24438,45561,17657,16885,44687,44836,44878,17839,17351,6782,30135,17092,30963,18572,17527,44868,18981,44674,16935,8753,17492,44689,6609,18279,44853,17009,44845,45286,18237,18353,5259,17278,44766,44765,17114,18042,44866,45517,37267,44835,18719,22509,45262,45051,17904,10402,44849,45516,44768)
Unknown column 'np.person' in 'where clause'