Adhoc queries

1 ?
2 ?

WordPress database error: [Unknown column 'feed' in 'WHERE']
SELECT player_name FROM player WHERE player_id = feed


Warning: Undefined variable $player_name in /home/u656874923/domains/rageonline.co.uk/public_html/wp-content/themes/ro-2018/ro_functions2.php on line 1235

WordPress database error: [Unknown column 'feed' in 'WHERE']
SELECT games.* FROM ( -- All substitute and scored games SELECT g.num AS goals, f.attendance, f.r, f.f, f.a, f.v, o.opponent_name, o.opponent_id, DATE_FORMAT(f.date, '%Y-%m-%d') AS date, 'Y' AS was_sub, s.division, c.comp_name, c.comp_id, f.round , s.season_name, s.season_id FROM fixtures_results f JOIN opponent o ON o.opponent_id = f.opponent_id JOIN season s ON s.season_id = f.season_id JOIN comp_data c ON c.comp_id = f.comp_id JOIN substitute_details st ON st.date = f.date LEFT OUTER JOIN goalscorer_details g ON g.date = f.date AND g.player_id = st.sub_player_id WHERE st.sub_player_id = feed AND st.date = f.date UNION -- All games where not a scorer SELECT '' AS goals, f.attendance, f.r, f.f, f.a, f.v, o.opponent_name, o.opponent_id, DATE_FORMAT(f.date, '%Y-%m-%d') AS date, '' AS was_sub, s.division, c.comp_name, c.comp_id, f.round , s.season_name, s.season_id FROM fixtures_results f JOIN opponent o ON o.opponent_id = f.opponent_id JOIN season s ON s.season_id = f.season_id JOIN comp_data c ON c.comp_id = f.comp_id JOIN team_squad_numbers sq ON sq.player_id = feed AND sq.date = f.date AND f.date NOT in (SELECT date from goalscorer_details where player_id = feed) UNION -- All games where a scorer SELECT g.num AS goals, f.attendance, f.r, f.f, f.a, f.v, o.opponent_name, o.opponent_id, DATE_FORMAT(f.date, '%Y-%m-%d') AS date, '' AS was_sub, s.division, c.comp_name, c.comp_id, f.round , s.season_name, s.season_id FROM fixtures_results f JOIN opponent o ON o.opponent_id = f.opponent_id JOIN season s ON s.season_id = f.season_id JOIN comp_data c ON c.comp_id = f.comp_id LEFT OUTER JOIN goalscorer_details g ON g.date = f.date WHERE g.player_id = feed AND g.date NOT IN (SELECT date FROM substitute_details WHERE sub_player_id = feed) ) games ORDER BY games.date ASC

Fixtures
Home games in Yellow Away games in blue

Season Date Date Opponent Opp Score Competition Comp Attd Att
No data found