sql query help
-
Can someone please help me with this sql query:
$image = $wpdb->get_var($wpdb->prepare("SELECT image FROM $wpdb->wordtube WHERE vid = $wordtubeId"));
I am getting this error:
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 for query SELECT image FROM wordtube WHERE vid = made by require, require_once, include, boposts_show
The query is working but I get this in php-errors.log
What am I missing?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘sql query help’ is closed to new replies.