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 (44855,44764,30135,17981,45043,30986,44868,17492,34194,45567,14402,45518,45516,36472,18900,17755,18981,4765,28530,44894,3,45072,17839,44674,44766,18688,17848,6875,14622,24438,44640,5259,18652,45177,44689,10402,17771,3883,44687,18650,18446,5410,18042,19057,44739,44861,44854,24441,44845,18572,44875,44745,44866,44669,17278,44835,18237,17351,44856,18353,28313,45561,44711,43800,18894,13988,16935,17335,44775,22509)
Unknown column 'np.person' in 'where clause'