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,45346,6609,44849,28313,18446,16935,24438,17092,39676,17556,4765,17278,17492,17756,44674,18894,10402,45517,44878,18648,17755,44875,44858,17237,3883,17904,8753,44835,19057,18688,18353,17351,24411,30135,13922,45516,14622,44873,37057,45229,18650,44863,44848,17839,28530,44868,6875,45286,45262,18286,45043,18279,44766,13425,45042,18900,17601,22509,30963,44775,17114,44765,44687,32454,44768,45561,18185,13,34194)
Unknown column 'np.person' in 'where clause'