Users who favourited this also favourited this

hi i am trying to set up a system similar to amazons, whereby
when you search a book, it tells you Customers who bought this item
also bought these items( a list of other books)
What i am trying to do is have a system which tells you
"users who have favourited this musician have also favourited these
artists"...
At the moment I have a query which takes an artists primary
id from the url of thier page, and the users primary id who
favourited the artist, and puts this into a table, so then you can
call the users fav artists, using
SELECT *
FROM artists_fav
WHERE id_usr_fav=#SESSION.auth.idnumber#
But im unsure of how to write a query that would take all the
other artists that a user has, who has favourited "massive attack"
for example, and present this in a list whereby the artist who has
been favourited the most by users who have also favourited massive
attack is at the top, then the next popular is second etc
here my site
http://www.musicexplained.co.uk/index_artist.cfm?id_art=38
and if you would like to test the favouriting system, you can
use username blanko, and password dranko
any help here would be MUCH appreciated

hi, following your advice i have pretty much got this up and
running, the only thing is, that when i try and run the count
(bandname_art) as favourite in the query i get an error message
so
<!---similar artists--->
<cfquery name="sim_art"
datasource="#APPLICATION.DataSource#">
SELECT bandname_art
FROM artist_art
LEFT OUTER JOIN artists_fav
ON artist_art.id_art = artists_fav.id_artkey_fav
WHERE id_usr_fav IN
(select id_usr_fav
from artists_fav
where id_usr_fav <> #session.auth.idnumber#
AND id_artkey_fav = #url.id_art#)
AND id_art <>#url.id_art#
</cfquery>
is fine
but
<!---similar artists--->
<cfquery name="sim_art"
datasource="#APPLICATION.DataSource#">
SELECT bandname_art, count (bandname_art) as favourite_count
FROM artist_art
LEFT OUTER JOIN artists_fav
ON artist_art.id_art = artists_fav.id_artkey_fav
WHERE id_usr_fav IN
(select id_usr_fav
from artists_fav
where id_usr_fav <> #session.auth.idnumber#
AND id_artkey_fav = #url.id_art#)
AND id_art <>#url.id_art#
</cfquery>
returns the error message of "You tried to execute a query
that does not include the specified expression 'bandname_art' as
part of an aggregate function."
i was wondering there was another way to order by favourite
count...maybe by using another query in conjuction etc etc
cheers

Similar Messages

  • Shared calendars are working, but have suddenly started prompting for login info of user who shared the calendar

    My boss started having this problem this morning. It may possibly be due to an update. The calendars appear to still be working fine (not 100% sure they're
    getting new updates) and I've tried deleting them and re-adding them and the problem persists. Outlook will pop up the Security prompt asking for login credentials, with the username of the person whose calendar is shared pre-filled in the user name section.
    If you click cancel everything continues to work but it prompts you again in a few minutes. 
    These calendars have previously worked perfectly with no issues. 

    Hi,
    Please confirm if there is any changes in Shared calendar account and your boss mailbox.
    Since the issue occurs after the update in your Boss's computer, please reboot the local machine. And recreate the Outlook profile to have a try. About opening shared calendar in new profile, please open the shared calendar by the following steps:
    1. Switch to Calendar pane.
    2. Click Open Calendar > Open Shared Calendar.
    3. Click Name to select the user who shared the calendar to this user.
    4. Then click OK to open the Calendar.
    Check whether there is any error when open it. If there is any permission error, please check the folder permission in shared user side.
    Regards,
    Winnie Liang
    TechNet Community Support

  • VsFTPD, creating a user who can upload

    Hello everyone!
    I setup ftp-server with this configuration:
    listen=YES
    anonymous_enable=YES
    local_enable=YES
    write_enable=YES
    local_umask=022
    anon_upload_enable=YES
    anon_mkdir_write_enable=YES
    anon_other_write_enable=YES
    dirmessage_enable=YES
    xferlog_enable=yes
    connect_from_port_20=YES
    xferlog_std_format=YES
    idle_session_timeout=600
    data_connection_timeout=120
    anon_world_readable_only=NO
    I have several questions of finishing setup.
    Everything I wanna work except one. I don't know how to create the user who as a client can upload files. Now I have the directory upload, where everyone can do anything that he want (upload delete rename etc..) and others dir such as music, films where users (they all will be anonymous) can only download. I want to create user who can upload files to this directories. How can I make this? now no pam, no authantification.
    Another question. How can I limit space of upload's folder?
    another info, permissions of ftp folder: dr-xr-xr-x  3 ftp    ftp      4096 2009-10-04 21:09 ftp
    upload folder:drwxrwxrwx 2 root root 4096 2009-10-06 22:58 upload
    I think it's not pretty good that upload is root's folder. what aobut this?
    Thanks!! and sorry for my english, i first time write so long text on foreign forum))

    ok. I had done all writing in the guide. but this example is without anonymous users. I want to create two types of directories ("shared" and others) and two types of users (anonymous and several admins which must log in)
    1) anonymous users who can do anything in directory "shared" and only download in other directories.
    2) admins users can upload and delete files or folders at any directory.
    home directories aren't interesting to me.
    What permissions should specify for dir?
    thanks in advance for patience

  • Tracking down the user who updates a PDP (Project Detail Page)

    Hi guys,
    I have a custom field called Project Status that is used in some PDP in Project Server. When users update this field, we need to know who did the update. Is there a way to track down the user who populated some info on this field? Does Project Server do
    an audit of some sort on these kinds of things?
    Thanks.
    Regards,
    Kwazi

    Hi Mike,
    Thanks for the response. I want to write a stored procedure to script this though. Do you know which tables holds information about  Queue
    jobs(?
    Thanks.
    Kwazi

  • SharePoint 2013 - Server Error in '/' Application - This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database

    Hi
    After I ran SharePoint configuration wizard successfully to upgrade to SharePoint 2013 / SP1.
    I can open Central Administration site just fine.
    but now when I open any Site collection,  I got this error.
    Server Error in '/' Application
    This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from the configuration database. To connect this server to the server farm, use the SharePoint Products Configuration
    Wizard, located on the Start menu in Microsoft SharePoint 2010 Products
    I have restarted all the servers:  SQL server, WFE and APP servers but still cann't get this resolve.
    Services on all servers are running,  IIS - application pools are running.
    Can someone help with where that could be a problem or if there is a solution.
    Thanks in advance for your comments or advices.
    Swanl

    Please verify the followings:
    Make sure that from the SharePoint front end and application servers that you can ping your SQL server.
    Make sure that your Farm account has permission to the configuration database.
    Lastly verify that your database didn't for some reasons go into recovery mode.
    once everything is fine and you are still having issues, restart the SQL host service on the SQL server.
    Once the service is restarted you will need to reboot Central Admin and then your front end servers.
    In addition, as you built your farm inside the firewall, please disable the firwall, or create rules for SQL Server service in the firwall on SQL server.
    More information about creating rules in firewall, please refer to the following posts: http://social.technet.microsoft.com/Forums/en-US/c5d4d0d0-9a3b-4431-8150-17ccfbc6fb82/can-not-create-data-source-to-an-sql-server http://www.mssqltips.com/sqlservertip/1929/configure-windows-firewall-to-work-with-sql-server/
    Here is a similar post for you to take a look at: http://social.technet.microsoft.com/Forums/en-US/ea54e26c-1728-48d4-b2c5-2a3376a1082c/this-operation-can-be-performed-only-on-a-computer-that-is-joined-to-a-server-farm-by-users-who-have?forum=sharepointgeneral 
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How are you dialing these calls?

  • HT4993 How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How are you dialing these calls?

  • I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker

    Hi There:  I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker in my office, while the PCs don't have this problem...  Any help/suggestions for a fix would be most appreciated! 

    Just adding more info - MacBookPro running 10.5.8 and using Safari as the browser.  The problem comes and goes - sometimes the linked Word files will open OK, n others its just a strring of crazy characters... 

  • Hi, I have a Indesign user who inherited a PC with Indesign installed. Indesign works with old PC user profile but not the new user. Any ideas how I can resolve this?

    Hi, I have a Indesign user who inherited a PC with Indesign installed. Indesign works with old PC user profile but not the new user. Any ideas how I can resolve this?

    Question # 1 is what do you mean by "inherited"? Is this a case where the computer belonged to someone else? Your user would not be entitled to use a program licensed to someone else.

  • I have a downloaded font file for a school problem on a flash drive and I do not know how to install it into my photoshop application. Need to be walked through this as I am an older user who does not understand any of this stuff.

    I have a downloaded font file for a school problem on a flash drive and I do not know how to install it into my photoshop application. Need to be walked through this as I am an older user who does not understand any of this stuff.

    Fonts are handled by your operating system and installed through the respective System Control panel (Windows) or Fontbook (Mac). On Windows simply type "Fonts" in the search bar in the start menu and when you open the panel/ folder use File --> Add Font. On Mac the procedures are similar, you just need to find the Fontbook app in Applications:Utilities.
    Mylenium

  • When I use messaging there are only two users who automatically go green (MMS?), and are undeliverable. I can't seem to change this. What am I doing wrong?

    When I use messaging there are only two users who automatically go green (MMS?), and are undeliverable. I can't seem to change this. What am I doing wrong?

    I use message and all other messages are non-sms. When I try to message these two accounts, they automatically use sms, everything I do is the same. The non-sms messages go through just fine (including pictures). The sms messages (no pictures) are always rejected; they have never gone through. They have never been able to send messages to me either (although they can send to others). I have a Verizon cellular data plan.

  • HT3529 I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    I'm having trouble with my iPhone 5 iMessage service. The device does not recognize the users who have iMessage when I try to contact them using this feature. Who have the same issue and what did you do in order to solve it?

    Read here:
    http://support.apple.com/kb/ts2755

  • HT5246 The above info is confuses me.  I thought this trojan horse affected those who had Java (JRE) up and running  i.e.,Safari security Java checkbox enabled.  I also believed this Trojan horse affected those using Snow Leopard. Clarify please.

    The above info re the Flashback removal tool confuses me.  I thought this trojan horse affected those who had Java (JRE) up and running  i.e.,Safari security Java checkbox enabled.  I also believed this Trojan horse also affected those using Snow Leopard. Clarify please.

    There are several variants of the trojan. The first ones were released as installers for Adobe Flash and therefore did not require you to have Java on your system. Later variants took advantage of a Java vulnerability and could install themselves by simply visiting a rogue Web site. Therefore, even without Java installed if you had run a rogue updater for Adobe Flash or Reader, then you might have installed the trojan.
    The trojan also affects Snow Leopard and prior versions of OS X (so far the code is known to be intel-only, but this is unconfirmed), but Apple has only issued patches for supported versions of the OS (version 10.6 or later).
    Apple's removal tools run in OS X 10.6 or later if you instlal the Java update, and the standalone removal tool is for Lion only. Why Apple does not offer options for other operating systems is beyond me, but that's the way of things. Right now there are other tools you can use to check for and remove the malware on versions of OS X that Apple does not support: http://reviews.cnet.com/8301-13727_7-57413811-263/flashback-malware-removal-tool -roundup/

  • Schedules Error  - Job execution failed because the user who scheduled this

    Hi
    I wonder if anyone can help
    I have a report that I can deliver by email through the BI Publsiher front end without issue. However when I call the report to send by email through my oracle 11G Database, as the same BI User I get the following error message
    "oracle.apps.xdo.servlet.scheduler.ProcessingException: Job execution failed because the user who scheduled this job has no more permission or priviledge to run the job."
    Any suggestions?
    Thanks
    Kev

    The scheduler appears to be the culprit here so try the following:
    1. Open the [repository_home]/Admin/Scheduler/quartz-config.properties file
    2. Add the following entry:
    org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true
    3. Restart the environment (xmlpserver)
    4. Rerun the report via the scheduler

  • How to disable via Group Policy - "Any user who has a password doesn't need to enter it when waking this PC"

    The setting can be found in the following location:
    From the “Charm” bar, Settings>Change PC Settings>Users>Sign-in Options> click the “Change” button next to “Any user who has a password must enter it when waking this PC”.
    I am looking to disable this option via Group Policy on our domain, but am unable to find a default policy related to this setting.  I am searching Group Policy on a Server 2012 machine, and in local Group Policy in Windows 8, but have found nothing. 
    Hoping I'm just missing the location of this and someone can point me to the right place.
    Regards,
    -BN

    There is no specific policy for this item. Please set “Require a password on wakeup” policy instead.
    Niki Han
    TechNet Community Support
    I'm using Windows Server 2012 R2, and I can't find the above quoted policy, and don't know where to anymore where to look. I searched for "Require a password when the computer wakes up", but it took me to the "Define Power Buttons and Turn On
    Password Protection" page of System Settings, but there's NOTHING there except the "When I press the power button".  I really want to stop having to enter a password every time I wake up the monitor screen.
    Capt. Dinosaur

Maybe you are looking for

  • Ideas For A Text-Based Game

    I tried working on Graphics a while ago, but I didn't have too much luck with that ;) Just wondering if anyone here has any ideas about a 'fun' text-based game, that wouldn't be really based on RPG style stuff, because I don't really want to bother w

  • How to recover oracle 9i services in windows xp

    i had my registry corrupted so i had to restore it from an old registry bakup tht i had made the problem now is that the bakup was taken before i installed oracle so now i have oracle installed without any registry entries so i had to install it all

  • Can i use my nano charger to charge my iphone

    can i charge my iphone with my nano charger

  • Wireless card

    what would i need to have wireless internet like in a car? like we have a wireless pc card for my dell. but i just recently bought a macbook, and want to have wireless internet like when we go on trips and what not.

  • Firefox doesn't load some facebook games

    I am using Firefox 20. I can play Facebook games like Angry birds. Flash player is not the problem because YouTube works fine. games like crazy taxi, cube, backgammon not loading, not even the page - full blank. I tried with other browsers, It works.