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 (18427,44853,45516,16935,44835,17556,44766,5993,18279,45051,8753,17237,45177,30986,44873,45229,18172,44711,22509,44856,13,44739,28530,44765,3,44884,45346,43800,44674,30963,18650,44863,18688,17904,17492,44764,45421,19078,3883,45561,44531,13425,17848,18446,30135,17835,24441,6609,44640,18648,18237,17657,44687,45515,5259,45277,44685,17601,18719,45286,44865,13922,44866,17839,44849,18430,18996,18794,44868,18185)
Unknown column 'np.person' in 'where clause'