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 (5993,6862,44767,44875,44764,44640,30986,44858,18446,17835,18648,22509,36472,6609,44865,16935,44855,44873,28530,14402,30963,44685,17657,17601,18427,28313,3883,45072,18237,18279,17114,45567,18650,30135,44766,44867,44835,44851,18894,44689,24441,37267,44866,17278,44868,45051,17771,44739,37057,4765,44837,44745,44768,17351,44894,44854,6782,43800,17839,17092,45229,19057,18172,19078,44765,45262,17556,13,5259,17904)
Unknown column 'np.person' in 'where clause'