The Little Guy Posted July 2, 2007 Share Posted July 2, 2007 how do you AS, in mysql? The below doesn't work, I want to rename the returned column to "linkto" how do I do it since this doesn't work SELECT * FROM friends_image_comments,users,friends_images WHERE friends_image_comments.posterID = users.id as `linkto` AND users.id = friends_images.ownerID AND friends_images.`default` = '1' AND friends_image_comments.ownerID = '{$_SESSION['id']}' AND friends_image_comments.view = '0' Link to comment https://forums.phpfreaks.com/topic/58133-solved-mysql-as/ Share on other sites More sharing options...
Wildbug Posted July 2, 2007 Share Posted July 2, 2007 "AS" has no place in the WHERE clause. You can alias tables or columns, but you need to do that in either the SELECT or FROM clauses. What are you trying to do? Link to comment https://forums.phpfreaks.com/topic/58133-solved-mysql-as/#findComment-288313 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.