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 (45421,44669,13,6875,44531,18794,44835,3,44867,44878,18572,44764,14622,45286,44875,44671,45561,44873,13922,45516,18237,16935,43800,28313,44837,44775,44863,24411,44848,17527,44689,45051,44766,44685,44849,44739,44836,44853,44856,17755,17114,44866,45515,24438,17009,45262,44711,17756,5410,30963,44845,13988,18688,44870,17839,44745,45043,18301,17848,44894,17657,44868,18894,6609,45277,45518,44674,44762,18353,44640)
Unknown column 'np.person' in 'where clause'