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 (45229,6782,17755,44764,18286,44687,9341,44863,45346,6862,39676,37267,44865,44861,45567,44845,4765,17839,45072,45561,17335,44775,28530,18648,44689,5993,30135,13988,44674,5388,18185,17278,17848,18042,19057,18652,17556,45516,5259,3,31354,16885,17771,13,43800,44855,6875,44873,24411,45286,44745,18279,17835,17351,18719,18894,28313,22509,17527,18996,45051,18237,18900,16935,37057,18572,44849,45421,36472,17092)
Unknown column 'np.person' in 'where clause'