A Database Error Occurred

Error Number: 1194

Table 'tblRaces' is marked as crashed and should be repaired

SELECT tblRaces.pkyRaceID AS raceID, tblRaces.dtmDate AS raceTime, tblRaces.strClass AS class, tblRaces.strDistanceText AS distance, tblMeetings.strCourse AS courseName, tblRaces.strTitle AS raceTitle, tblRaces.bitResultsReceived AS resultsReceived, tblClips.intPerformFileID, tblClips.intPerformClipID, tblRaceEntries.fkyHorseID, tblHorses.strName AS horseName, tblMeetings.strCountry AS country, tblMeetings.strStatus AS status, tblCountries.intSortValue, tblCountries.strCountryAbbrev FROM tblMeetings LEFT JOIN tblCountries ON tblCountries.pkyCountryID = tblMeetings.fkyCountryID, tblRaces LEFT JOIN tblClips ON tblClips.fkyVideoID = tblRaces.fkyVideoID AND tblClips.intClipType = 4 LEFT JOIN tblRaceEntries ON tblRaces.pkyRaceID = tblRaceEntries.fkyRaceID AND tblRaceEntries.bitPredictedFavourite = 1 LEFT JOIN tblHorses ON tblHorses.pkyHorseID = tblRaceEntries.fkyHorseID WHERE tblMeetings.dtmDate = '2014-10-25 00:00:00' AND tblRaces.fkyMeetingID = tblMeetings.pkyMeetingID AND tblCountries.pkyCountryID <6 ORDER BY tblRaces.dtmDateGMT

Filename: application/models/home_model.php

Line Number: 59