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 (44764,45515,44856,18719,18430,39676,44674,32454,17839,44845,19057,44858,45277,30986,44762,44884,45286,44869,17009,5410,44863,44868,5259,45229,45561,18650,6609,17657,18286,18042,18688,3883,44870,44669,44745,36472,44689,17237,45262,17756,18794,44671,45516,8753,34194,45177,28313,44687,30963,44835,17492,17114,24411,13425,18353,43800,18648,45043,28530,18652,5993,44878,4765,45042,17755,45421,44775,44853,22509,44865)
Unknown column 'np.person' in 'where clause'